* src/androidterm.c (android_handle_ime_event): Clear batch edit
state, in case the previous input method forgot to do so.
finish_composing_text (f, event->ime.counter,
event->ime.length == 1);
+
+ if (event->ime.length == 2)
+ {
+ /* Now cancel outstanding batch edits if a new input method
+ has connected. */
+
+ f->conversion.batch_edit_flags = 0;
+ f->conversion.batch_edit_count = 0;
+ }
+
break;
case ANDROID_IME_SET_COMPOSING_TEXT: