diff options
Diffstat (limited to 'src/PYPPhoneticEditor.cc')
-rw-r--r-- | src/PYPPhoneticEditor.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PYPPhoneticEditor.cc b/src/PYPPhoneticEditor.cc index 7b37e6f..4eef8ed 100644 --- a/src/PYPPhoneticEditor.cc +++ b/src/PYPPhoneticEditor.cc @@ -463,6 +463,12 @@ PhoneticEditor::selectCandidate (guint i) gboolean PhoneticEditor::selectCandidate (guint index) { + /* un-parsed text */ + if (G_UNLIKELY (0 == index && 0 == m_candidates.size ())) { + commit (""); + return TRUE; + } + if (G_UNLIKELY (index >= m_candidates.size ())) return FALSE; |