Fixed an issue in the editor related to unicode handling.

Sat, 28 Aug 2010 16:59:45 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 28 Aug 2010 16:59:45 +0200
changeset 510
84257fe1c8b4
parent 509
5a44880e63a2
child 512
4d765043b3ce

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:25:00 2010 +0200
+++ b/QScintilla/QsciScintillaCompat.py	Sat Aug 28 16:59:45 2010 +0200
@@ -742,10 +742,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