GNOME Bugzilla – Bug 82769
Inconsistent behavior of selection in the TextView
Last modified: 2011-02-04 16:11:56 UTC
Using Gtk+ 2.0.2, the handling of the selection of text in the GtkTextView widget does not seem to be very consistent. When you select multiple lines, the blank lines are handled sometimes by highlighting the whole area around the line, sometimes by highlighting nothing (which is very confusing, since when you have several blank lines, there is no way to get what it the current selection bound, assuming you're selecting from the keyboard). Similarly, some non empty lines are sometimes highlighted entirely, including the blank area at the end of the line, and sometimes they are only highlighted unless the last actual character. A consistent behavior would be nice, the optimal (standard) behavior would be to always highlight the current line, including surrounding/blank areas. Arno, for the GtkAda team
Some additional info: it seems that depending whether you start the selection from the very beginning of the line or not, you will get the whole line highlighted (included the blank area at the of the line) or not. Arno
Moving bugs from older 2.0.x milestones to 2.0.10.
The handling of selected empty lines has been fixed now.
For non-empty lines, I believe that they're highlighted completely only if they are wrapped. Lines ending in a linebreak should be highlighted only to the last character.