GNOME Bugzilla – Bug 325358
word erase in text fields considers space as a separate word
Last modified: 2006-01-03 03:58:27 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? Yes Other information:
2006-01-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c (gtk_entry_delete_from_cursor): When deleting words, delete preceding whitespace as well. (#325358, Akkana Peck)