QScintilla/EditorAssembly.py

changeset 6297
85e20e9b4d55
parent 6188
5a6ae3be31e6
child 6317
e9ec47d52ff2
--- a/QScintilla/EditorAssembly.py	Fri May 18 19:41:02 2018 +0200
+++ b/QScintilla/EditorAssembly.py	Sat May 19 16:38:28 2018 +0200
@@ -198,7 +198,8 @@
         if lineno is not None and moveCursor:
             txt = self.__editor.text(lineno - 1).rstrip()
             pos = len(txt.replace(txt.strip(), ""))
-            self.__editor.gotoLine(lineno, pos if pos == 0 else pos + 1, True)
+            self.__editor.gotoLine(lineno, pos if pos == 0 else pos + 1,
+                                   firstVisible=True, expand=True)
             self.__editor.setFocus()
     
     def __resetParseTimer(self):

eric ide

mercurial