From 7f7c123878080fe39de05ebbae11b19231b04388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?hiunn-hu=C3=A9?= Date: Sat, 23 Sep 2017 09:32:16 +0800 Subject: [PATCH] Update pre-edit and aux text after commit_text () This prevent pre-edit text from flashing when auto-commit. --- src/IBusChewingEngine.gob | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IBusChewingEngine.gob b/src/IBusChewingEngine.gob index f8e745b..caf3ed2 100644 --- a/src/IBusChewingEngine.gob +++ b/src/IBusChewingEngine.gob @@ -403,9 +403,9 @@ class IBus:Chewing:Engine from IBus:Engine { protected void update(self) { IBUS_CHEWING_LOG(DEBUG, "update() statusFlags=%x", self->_priv->statusFlags); + commit_text(self); update_pre_edit_text(self); update_aux_text(self); - commit_text(self); IBUS_CHEWING_LOG(DEBUG, "update() nPhoneSeq=%d statusFlags=%x",