GNOME Bugzilla – Bug 701332
Patch for minor glitch in NSTextInput
Last modified: 2013-07-27 21:35:58 UTC
Created attachment 245705 [details] [review] Patch to clear preedit correctly In the patch of Bug #694273, I forgot to clear the preedit string when unmarkText() is called. This patch fixes a problem for the following situateion. Correct behavior: 1. convert some Hiragana to Kanji, which has its length more than one Kanji character, with pressing space key 2. press delete key 3. it should delete only the last character and the former characters should be committed Wrong behavior (without this patch): 3' the former characters are committed, but the string is additionally still shown as if is is a preedit sting Also I changed to use gchar instead of char appropriately in some places. I think this patch should be applied to master and gtk-3-8 branch too.
Comment on attachment 245705 [details] [review] Patch to clear preedit correctly Committed to master, gtk-2-4, and gtk-3-8. Thanks.