Double click may join lines incorrectly
Submitted by Ariel Tankus
Link to original bug (#108543)
Description
When double-clicking a word, the word is selected, regardless of line boundaries (i.e., it might be selected across lines). However, there are situations when this selection merges the word with the next line. This happens when the last character of the word is exactly the last character of the line, and the next line has a character at position 0.
To reproduce: Run ls -l in a (non-trivial) directory. Now, rescale g-t until there is a line with no spaces after its last character (i.e., if the line has 69 characters, the width of g-t it exactly 69 character). Make sure that line is not the last line. Following this, double click the last word. The result is selection of the word, but the beginning of next line (usually, file permissions of next file) are appended to the selection.
I suspect the problem is that g-t does not keep track of newlines in the output of the process (in the example: ls), but rather decides which line scrolls to the next line based on the presence of characters in the last position of current line, and first position of next line.
Version: 0.10.x
Resolution: RESOLVED FIXED