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 326921 - whitespace selection and tab key issues
whitespace selection and tab key issues
Status: RESOLVED DUPLICATE of bug 580495
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.8.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-01-14 02:23 UTC by Mike Miller
Modified: 2014-07-20 16:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mike Miller 2006-01-14 02:23:58 UTC
+++ This bug was initially created as a clone of Bug #309860 +++

Intro:
-------------
Most GUI based text editors allow one to double 
click to select the whitespace before and between words.

This is quite helpful when writing in a language that 
whitespace is important such as python.  It is also 
helpful when trying to line up indentation in other
programming languages.

This functionality was implemented recently, however it 
has two issues which make it much less useful than it 
could be.

Issues:
-------------

1)  If one double-clicks and selects the whitespace at the 
beginning of a line in which the first non-whitespace 
character is a special character (like a double 
quote (python doc string), or less than bracket (html)) 
the selection includes that special character .... it 
shouldn't.  eg:

(double click beginning of line below:)
<space><space><space><space>" Python Doc String "
========Selected==============
                            ^^
Those last two chars shouldn't be selected.

2)  After selection, hitting the tab key keeps the selection 
(it shouldn't) and additionally it moves only the text after
the special characters!!!  (very, very strange)  ;)

Oh, and please don't forget the GtkEntry component as well.

Thanks.
Comment 1 Mike Miller 2006-05-29 19:25:06 UTC
Isn't anyone interested in this bug?  

It makes gedit useless for many operations.  :(
Comment 2 Sébastien Wilmet 2014-07-20 16:48:48 UTC
The second part of this bug is fixed. 
The first part is a duplicate of bug #580495.

*** This bug has been marked as a duplicate of bug 580495 ***