summaryrefslogtreecommitdiffstats
path: root/src/PYPPhoneticEditor.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-07-04 14:35:42 +0800
committerPeng Wu <alexepico@gmail.com>2016-07-04 14:35:42 +0800
commited7159efd0c86b2ed22c0ddceecda90b49d764a8 (patch)
tree691bec3a5aa96a9bfbd212bb9bbd67313ecb3a43 /src/PYPPhoneticEditor.cc
parentfbbb593328a437bb5f7e35f43c3a5838852566ae (diff)
downloadibus-libpinyin-ed7159efd0c86b2ed22c0ddceecda90b49d764a8.tar.gz
ibus-libpinyin-ed7159efd0c86b2ed22c0ddceecda90b49d764a8.tar.xz
ibus-libpinyin-ed7159efd0c86b2ed22c0ddceecda90b49d764a8.zip
port code to use libpinyin 1.5.91
Diffstat (limited to 'src/PYPPhoneticEditor.cc')
-rw-r--r--src/PYPPhoneticEditor.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PYPPhoneticEditor.cc b/src/PYPPhoneticEditor.cc
index d6ac3d9..0c064aa 100644
--- a/src/PYPPhoneticEditor.cc
+++ b/src/PYPPhoneticEditor.cc
@@ -497,7 +497,7 @@ PhoneticEditor::getCursorLeftByWord (void)
size_t cursor = 0;
- pinyin_get_left_character_offset(m_instance, offset, &cursor);
+ pinyin_get_left_pinyin_offset(m_instance, offset, &cursor);
return cursor;
}
@@ -511,7 +511,7 @@ PhoneticEditor::getCursorRightByWord (void)
size_t cursor = 0;
- pinyin_get_right_character_offset(m_instance, offset, &cursor);
+ pinyin_get_right_pinyin_offset(m_instance, offset, &cursor);
return cursor;
}