summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-12-12 01:44:05 -0300
committerdequis <dx@dxzone.com.ar>2015-12-12 01:49:32 -0300
commite6fa311590da78d05e9eea42d3664cec01c9b1ae (patch)
tree6442d64ed62b91fde7e646c6ca1cbf1766696149 /src/common.h
parent38d372eccb3745a7734b8f8963ae572d1343c5b1 (diff)
downloadirssi-e6fa311590da78d05e9eea42d3664cec01c9b1ae.zip
Bracketed paste: Adjust paste line count if there's text after newlines
With bracketed paste, "a\nb" will result in two lines being pasted, because it's a single thing, with an end marker which the timeout based pastes don't have. Due to the way term_gets() counts lines, that input will have paste_line_count == 1. This can be misleading. This code adjusts it by looking at the last character, and increasing the count if it finds anything that isn't a newline.
Diffstat (limited to 'src/common.h')
0 files changed, 0 insertions, 0 deletions