QScintilla/QsciScintillaCompat.py

changeset 510
84257fe1c8b4
parent 502
7500b9d5b21d
child 551
e1074b63ff08
equal deleted inserted replaced
509:5a44880e63a2 510:84257fe1c8b4
740 if not self.__targetSearchActive: 740 if not self.__targetSearchActive:
741 return 741 return
742 742
743 if self.__targetSearchFlags & QsciScintilla.SCFIND_REGEXP: 743 if self.__targetSearchFlags & QsciScintilla.SCFIND_REGEXP:
744 cmd = QsciScintilla.SCI_REPLACETARGETRE 744 cmd = QsciScintilla.SCI_REPLACETARGETRE
745 r = replaceStr
746 else: 745 else:
747 cmd = QsciScintilla.SCI_REPLACETARGET 746 cmd = QsciScintilla.SCI_REPLACETARGET
748 r = self._encodeString(replaceStr) 747 r = self._encodeString(replaceStr)
749 748
750 start = self.SendScintilla(QsciScintilla.SCI_GETTARGETSTART) 749 start = self.SendScintilla(QsciScintilla.SCI_GETTARGETSTART)
751 self.SendScintilla(cmd, len(r), r) 750 self.SendScintilla(cmd, len(r), r)
752 751
753 self.__targetSearchStart = start + len(r) 752 self.__targetSearchStart = start + len(r)

eric ide

mercurial