summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-07-04 13:11:44 +0800
committerPeng Wu <alexepico@gmail.com>2014-07-04 13:11:44 +0800
commitd4d8b845dae0e888f3d9bb6c90c57464a73a455a (patch)
tree9750b7248978c24b2f32558a6fc23e1562c871b4 /src
parent0434a44ca4c15f53598128936d036b8c6cf49577 (diff)
downloadibus-libzhuyin-d4d8b845dae0e888f3d9bb6c90c57464a73a455a.tar.gz
ibus-libzhuyin-d4d8b845dae0e888f3d9bb6c90c57464a73a455a.tar.xz
ibus-libzhuyin-d4d8b845dae0e888f3d9bb6c90c57464a73a455a.zip
fixes a typo
Diffstat (limited to 'src')
-rw-r--r--src/ZYZPhoneticEditor.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc
index 9054f06..5ae92d4 100644
--- a/src/ZYZPhoneticEditor.cc
+++ b/src/ZYZPhoneticEditor.cc
@@ -687,7 +687,7 @@ PhoneticEditor::prepareCandidates (void)
}
/* deal with candidates */
- if (m_cursor != enhanced_text.size ()) {
+ if (m_cursor != get_enhanced_text_length (enhanced_text)) {
section_t type = probe_section_quick (enhanced_text, start_pos);
if (PHONETIC_SECTION == type) {
@@ -701,9 +701,8 @@ PhoneticEditor::prepareCandidates (void)
assert (cursor < section_len);
assert (parsed_len <= section_len);
- String lookup;
if (cursor >= parsed_len) {
- lookup = section[cursor];
+ String lookup = section[cursor];
m_input_state = STATE_BOPOMOFO_SYMBOL_SHOWN;
m_symbol_sections[m_input_state]->initCandidates
(m_instance, lookup);