src/eric7/QScintilla/EditorOutline.py

branch
eric7
changeset 10677
6ee2e475490c
parent 10439
21c28b0f9e41
child 10832
479cf39ac9cb
diff -r d1479a4f1426 -r 6ee2e475490c src/eric7/QScintilla/EditorOutline.py
--- a/src/eric7/QScintilla/EditorOutline.py	Mon Apr 08 17:02:11 2024 +0200
+++ b/src/eric7/QScintilla/EditorOutline.py	Tue Apr 09 14:27:03 2024 +0200
@@ -190,8 +190,8 @@
             itm = self.model().item(index)
             if itm:
                 with contextlib.suppress(AttributeError):
-                    lineno = itm.lineno()
-                    self.__model.editor().gotoLine(lineno)
+                    self.__model.editor().gotoLine(itm.lineno(), itm.colOffset() + 1)
+                    self.__model.editor().setFocus()
 
     def mouseDoubleClickEvent(self, mouseEvent):
         """

eric ide

mercurial