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 522367 - Ctrl+Delete before whitespace deletes next word
Ctrl+Delete before whitespace deletes next word
Status: RESOLVED DUPLICATE of bug 611676
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-03-14 07:58 UTC by Gregor Popović
Modified: 2014-04-10 14:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Gregor Popović 2008-03-14 07:58:28 UTC
If for example, I type the following sentence:
"A cat       sat on a mat." 
and position the cursor just after the word "cat", then press Ctrl+Delete,
the result is
"A cat on a mat."
I would expect gedit to only delete the whitespace until the next word, so I'd get:
"A cat sat on a mat."

The same goes for cases, where there's a line break after a lot of whitespace, which happens A LOT during programming. 

For example:

"A cat     "
"sat on a mat."

results in:

"A cat on a mat." 

again.

This is especially annoying while programming, since I lose the first keyword of the next line, when all I wanted was to join two lines.


Other information:
Comment 1 Paolo Borelli 2008-11-02 16:34:45 UTC
the behavior is part of gtktextview and should be fixed there.
Comment 2 Sébastien Wilmet 2014-04-10 14:38:40 UTC
The bug #611676 is more recent, but is more general (not only for whitespaces).

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