After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 82769 - Inconsistent behavior of selection in the TextView
Inconsistent behavior of selection in the TextView
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.0.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-05-23 16:31 UTC by Arnaud Charlet
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Arnaud Charlet 2002-05-23 16:31:14 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
Comment 1 Arnaud Charlet 2002-06-20 12:42:34 UTC
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
Comment 2 Matthias Clasen 2002-11-21 19:00:55 UTC
Moving bugs from older 2.0.x milestones to 2.0.10.
Comment 3 Matthias Clasen 2002-12-26 00:28:30 UTC
The handling of selected empty lines has been fixed now.
Comment 4 Matthias Clasen 2002-12-26 00:39:30 UTC
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.