gnome-terminal: Word selection fails when selection starts on the beginning of a line
Submitted by dri..@..ct.com
Description
Word selection (double click, then drag) fails when the selection starts at the beginning of a line. Part of the original selection does not get selected after changing lines, which is different behaviour than a traditional xterm.
To reproduce, set the "Select-by-word characters" to "-A-Za-z0-9,./?%&#" in the gnome-terminal preferences. Next, put this text in a file and cat it from a shell:
-- snip -- This breaks:
This doesn't:
http://www.gnome.org/ -- snip --
Now, double click (and keep clicked) on any character in the "http". The "http" should become selected. Now drag right over the rest of the URL and the whole URL should be selected when you get to the "www" part. Drag up one line and you should get the whole blank line and the "http" selected. Now drag back down to the URL, and the bug will show itself. Instead of the whole URL being selected, only the "://www.gnome.org/" is selected. This only happens if the text starts at the beginning of a line. You will notice that in the second case (with whitespace before the URL), the whole URL is selected when you get back.
This behaviour is different than from a traditional xterm. Try the same steps to reprodce inside an xterm, and the whole URL will be selected even after going up to the previous line. It's as if it remembers where the selection originally started.
This bug has been around in all versions of gnome-terminal that I have used.
Version: 0.11.x
Resolution: RESOLVED FIXED