Skip to content

Commit

Permalink
fix a editor.commit_string bug
Browse files Browse the repository at this point in the history
  • Loading branch information
acevery committed Jul 22, 2009
1 parent 1fd5242 commit d64df85
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions engine/table.py
Expand Up @@ -593,10 +593,11 @@ def commit_to_preedit (self):
else:
_p_index = 8
try:
self._strings.insert(self._cursor[0], self._candidates[0][ self.get_cursor_pos() ][_p_index])
self._cursor [0] += 1
if self._py_mode:
self._zi = self._candidates[0][ self.get_cursor_pos() ][_p_index]
if self._candidates[0]:
self._strings.insert(self._cursor[0], self._candidates[0][ self.get_cursor_pos() ][_p_index])
self._cursor [0] += 1
if self._py_mode:
self._zi = self._candidates[0][ self.get_cursor_pos() ][_p_index]
self.over_input ()
self.update_candidates ()
except:
Expand Down

0 comments on commit d64df85

Please sign in to comment.