Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.4, 2.0.5, and 2.1

stable qscilib: don't move preedit cursor pos out of range (fixes #504)

This fixes incompatibility with Google Pinyin input method.

Changeset f51b46bc7809

Parent 286844273f5a

by Yuya Nishihara

Changes to one file · Browse files at f51b46bc7809 Showing diff from parent 286844273f5a Diff from another changeset...

 
83
84
85
86
 
87
88
89
 
83
84
85
 
86
87
88
89
@@ -83,7 +83,7 @@
    def movepreeditcursor(self, pos):   """Move the cursor to the relative pos inside preedit text""" - self._preeditcursorpos = pos + self._preeditcursorpos = min(pos, self._preeditlen)   l, i = self._preeditpos   self._sci.setCursorPosition(l, i + self._preeditcursorpos)