QScintilla/Shell.py

changeset 3034
7ce719013078
parent 3030
4a0a82ddd9d2
child 3039
8dd0165d805d
diff -r 58fe260e7469 -r 7ce719013078 QScintilla/Shell.py
--- a/QScintilla/Shell.py	Sat Oct 19 12:28:12 2013 +0200
+++ b/QScintilla/Shell.py	Sat Oct 19 13:03:39 2013 +0200
@@ -1326,7 +1326,7 @@
         @param cmd history entry to be inserted (string)
         """
         self.setCursorPosition(self.prline, self.prcol)
-        self.setSelection(self.prline, self.prcol,\
+        self.setSelection(self.prline, self.prcol,
                           self.prline, self.lineLength(self.prline))
         self.removeSelectedText()
         self.__insertText(cmd)
@@ -1616,12 +1616,12 @@
         
         @param txt text to be inserted (string)
         """
-        l = len(txt)
+        length = len(txt)
         line, col = self.getCursorPosition()
         self.insertAt(txt, line, col)
         if re.search(self.linesepRegExp, txt) is not None:
             line += 1
-        self.setCursorPosition(line, col + l)
+        self.setCursorPosition(line, col + length)
         
     def __configure(self):
         """

eric ide

mercurial