From 4ddf0fe62b90aa9b9027454d1c32206a561d0bac Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 7 Dec 2017 13:36:35 +0800 Subject: fixes cursor moves --- src/ZYZPhoneticEditor.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc index 5705029..71e4a41 100644 --- a/src/ZYZPhoneticEditor.cc +++ b/src/ZYZPhoneticEditor.cc @@ -703,10 +703,10 @@ PhoneticEditor::getCursorLeft (void) /* only when in parsed phonetic section, need adjustments. */ if (cursor < parsed_len) { size_t offset = 0; - zhuyin_get_zhuyin_offset (m_instance, cursor, &offset); + zhuyin_get_zhuyin_offset (instance, cursor, &offset); size_t left = 0; - zhuyin_get_left_zhuyin_offset(m_instance, offset, &left); + zhuyin_get_left_zhuyin_offset(instance, offset, &left); /* align to the begin of chewing key. */ /* restore cursor variable. */ @@ -747,10 +747,10 @@ PhoneticEditor::getCursorRight (void) /* when in parsed phonetic section, need adjustments. */ if (cursor < parsed_len) { size_t offset = 0; - zhuyin_get_zhuyin_offset (m_instance, cursor, &offset); + zhuyin_get_zhuyin_offset (instance, cursor, &offset); size_t right = 0; - zhuyin_get_right_zhuyin_offset(m_instance, offset, &right); + zhuyin_get_right_zhuyin_offset(instance, offset, &right); return m_cursor - cursor + right; } -- cgit