Fixed an issue in the editor related to unicode handling. 5_0_x

Sat, 28 Aug 2010 17:00:24 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 28 Aug 2010 17:00:24 +0200
branch
5_0_x
changeset 511
94a3d27e3b0d
parent 508
88a4ce2bcd18
child 515
97f439894f09

Fixed an issue in the editor related to unicode handling.

QScintilla/QsciScintillaCompat.py file | annotate | diff | comparison | revisions
--- a/QScintilla/QsciScintillaCompat.py	Sat Aug 28 16:03:03 2010 +0200
+++ b/QScintilla/QsciScintillaCompat.py	Sat Aug 28 17:00:24 2010 +0200
@@ -738,10 +738,9 @@
         
         if self.__targetSearchFlags & QsciScintilla.SCFIND_REGEXP:
             cmd = QsciScintilla.SCI_REPLACETARGETRE
-            r = replaceStr
         else:
             cmd = QsciScintilla.SCI_REPLACETARGET
-            r = self._encodeString(replaceStr)
+        r = self._encodeString(replaceStr)
         
         start = self.SendScintilla(QsciScintilla.SCI_GETTARGETSTART)
         self.SendScintilla(cmd, len(r), r)

eric ide

mercurial