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 110371 - Cannot select newline at end of full line
Cannot select newline at end of full line
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.11.x
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-04-09 11:49 UTC by Brad Garcia
Modified: 2008-12-02 12:54 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Brad Garcia 2003-04-09 11:49:41 UTC
gnome-terminal-2.2.1-3 & vte-0.10.25-1
Assuming Bug 110369 is fixed, there is another problem.

If a line is exactly 80 columns long (that is, the last character visible
in the line is not whitespace), then there is no reliable way for the user
to select the newline at the end of the line or not.

In xterm, if my selection goes to the beginning of the next line, it means
that I want the newline as part of the selection.  However, when I try this
in vte, it always ends up highlighting the first character on the new line.

In xterm, if my selection goes to the last character of the line, it means
that I do not want the newline as part of the selection.  Vte currently
does this as well.  Hopefully this will not change when bug 110369 is fixed.
Comment 1 Kjartan Maraas 2005-02-14 20:52:17 UTC
Seems like this is still true. Bumping version.
Comment 2 Behdad Esfahbod 2008-12-02 12:54:12 UTC
Fixed this.  Behaves more like xterm now.  Though I may be changing it to behave similar to other GTK+ widgets.

2008-12-02  Behdad Esfahbod  <behdad@gnome.org>

        Bug 471480 – select single character
        Bug 110371 – Cannot select newline at end of full line

        * src/vte-private.h:
        * src/vte.c (find_start_column), (find_end_column),
        (vte_terminal_start_selection), (math_div),
        (vte_terminal_extend_selection):
        Make selection work more I-beam-like.