summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-03-27 13:57:36 +0800
committerPeng Wu <alexepico@gmail.com>2018-03-27 13:57:36 +0800
commit5049c5b0ae837cd78314d54db4e22a223c03c6a2 (patch)
tree66065555103ac99079be810ee7ab8d88ccc808c2
parentd4ece7e7c48579d3cc6fe8376cd4474ec7d1db92 (diff)
downloadibus-libzhuyin-5049c5b0ae837cd78314d54db4e22a223c03c6a2.zip
ibus-libzhuyin-5049c5b0ae837cd78314d54db4e22a223c03c6a2.tar.gz
ibus-libzhuyin-5049c5b0ae837cd78314d54db4e22a223c03c6a2.tar.xz
fixes user symbol
-rw-r--r--src/ZYZPhoneticEditor.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc
index b4001f6..7bf3345 100644
--- a/src/ZYZPhoneticEditor.cc
+++ b/src/ZYZPhoneticEditor.cc
@@ -612,6 +612,7 @@ PhoneticEditor::selectCandidate (guint index)
m_cursor += offset;
m_input_state = STATE_INPUT;
+ updateZhuyin ();
update ();
return TRUE;
}
@@ -633,13 +634,14 @@ PhoneticEditor::selectCandidate (guint index)
lookup = (gchar) ch;
assert (BUILTIN_SYMBOL_TYPE == symbols->getType ());
- erase_input_sequence (m_text, m_cursor, 1);
+ /* erase_input_sequence (m_text, m_cursor, 1); */
insert_symbol (m_text, m_cursor, symbols->getType (),
lookup, choice);
m_cursor += offset;
m_input_state = STATE_INPUT;
+ updateZhuyin ();
update ();
return TRUE;
}