JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Removing wrapping newlines from selection
authorBen Hendrickson <ben@1m7.com>
Fri, 22 Aug 2014 16:25:04 +0000 (09:25 -0700)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Sat, 23 Aug 2014 07:52:18 +0000 (09:52 +0200)
commit98a1085d0e7c3d84e19185ba666c4b0c725cd974
tree27ea72a119a5a2346e6d3dc917d205e394ffc03c
parent51466e019a67e9319e6c5a7fa4205842ca860b71
Removing wrapping newlines from selection

When getting selected text, lines that were wrapped because of length
ought not include the wrapping newline in the selection.

This comes up, for example, when copying a bash command that is long
enough to wrap from the console and pasting it back into the console.
The extra newline breaks it.

Similiarly, changes behavior when trimming whitespace from the end of a
physical line to only do so if the line does not wrap. Otherwise we are
trimming whitespace from the middle of a logical line, which may change
its meaning.

Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
st.c