diff options
author | Peng Wu <alexepico@gmail.com> | 2017-12-07 13:57:14 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2017-12-07 13:57:14 +0800 |
commit | da65cc785bfb9b57180142e890480559845fbd86 (patch) | |
tree | f781f2b0c59db388a71bcf19231206e34b73fcf5 | |
parent | 4ddf0fe62b90aa9b9027454d1c32206a561d0bac (diff) | |
download | ibus-libzhuyin-da65cc785bfb9b57180142e890480559845fbd86.tar.gz ibus-libzhuyin-da65cc785bfb9b57180142e890480559845fbd86.tar.xz ibus-libzhuyin-da65cc785bfb9b57180142e890480559845fbd86.zip |
fixes cursor variable
-rw-r--r-- | src/ZYZPhoneticEditor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc index 71e4a41..0c1ffa9 100644 --- a/src/ZYZPhoneticEditor.cc +++ b/src/ZYZPhoneticEditor.cc @@ -710,7 +710,7 @@ PhoneticEditor::getCursorLeft (void) /* align to the begin of chewing key. */ /* restore cursor variable. */ - return m_cursor - cursor + left; + return m_cursor - (cursor + 1) + left; } } |