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 325358 - word erase in text fields considers space as a separate word
word erase in text fields considers space as a separate word
Product: gtk+
Classification: Platform
Component: Widget: Other
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Reported: 2005-12-31 05:45 UTC by Akkana Peck
Modified: 2006-01-03 03:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8

Description Akkana Peck 2005-12-31 05:45:37 UTC
Please describe the problem:
In gtk 2.8, a word erase backward, starting with the cursor positioned at a
space, deletes only the space, not the word to the left of it. This means that
deleting takes two word-erase keystrokes per word.

Steps to reproduce:
1. Type a few words separated by spaces and ending with a space, such as "asdf
asdf asdf ".
2. Repeatedly use ctrl-W with the emacs bindings, or ctrl-backspace with any
binding set: anything that's set to do { "delete-from-cursor" (word-ends, -1) }

Actual results:
The first ctrl-W or ctrl-Backspace deletes back to just after the previous
space. Type the same key again and it deletes the space. Again, and it deletes
back to after the next space, and so on. For each word you want to delete, you
have to press the key once for the word, then once for the next space.

Expected results:
In all gtk prior to 2.8 (and in most other toolkits), word erase deletes the
space with the word: if the cursor is positioned after a space, it should delete
the space plus the word preceding it.

Does this happen every time?

Other information:
Comment 1 Matthias Clasen 2006-01-03 03:58:27 UTC
2006-01-02  Matthias Clasen  <>

	* gtk/gtkentry.c (gtk_entry_delete_from_cursor): When deleting
	words, delete preceding whitespace as well.  (#325358, Akkana Peck)