summaryrefslogtreecommitdiffstats
path: root/src/PYPPhoneticEditor.cc
diff options
context:
space:
mode:
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;
}