diff -r db9b3a419845 -r 85e20e9b4d55 QScintilla/EditorAssembly.py --- 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):