GNOME Bugzilla – Bug 303872
Unable to remove preedit buffer cleanly in Evolution Calendar
Last modified: 2013-09-13 12:25:15 UTC
Distribution/Version: FC Description of problem: In CJKI locale, input characters in the predit buffers cannot be removed completely when they are not committed using IIIMF as input method. How reproducible: Always Steps to Reproduce: 1.from the g-t, run: LANG=ja_JP.UTF-8 evolution 2.click on calendar 3.single click on any time slot 4.ctrl-SPACE to enable Language Engine 5.enter 'sushi' 6.use Backspace to remove the characters Actual results: The first charcter cannot be removed Expected results: Everything should be removed. Additional Notes: Requires iiimf for input. Tested with iiimf-12.2-3
Adding keyword.
Lawrence: Can you please try with latest version ?
Nagappan: I am using evolution-data-server-1.2.2 from the snapshot. If you have any later version, could you please point me to it? Thanks.
This is because insert_preedit_text() only works when preedit_length isn't zero. and it's called after text->preedit_len is modified in e_text_preedit_changed_cb(). so preedit buffer isn't removed cleanly. reassigning to gal.
Created attachment 46628 [details] [review] proposed patch
Current version of https://git.gnome.org/browse/evolution/tree/e-util/e-text.c fixed this by simply resetting the value: 289 } else 290 text->preedit_len = 0; Closing as fixed.