ViewManager/ViewManager.py

branch
maintenance
changeset 6319
df201b9fbad4
parent 6273
0daf79d65080
parent 6297
85e20e9b4d55
child 6455
22a6fc33ab6d
--- a/ViewManager/ViewManager.py	Tue May 01 12:04:30 2018 +0200
+++ b/ViewManager/ViewManager.py	Sat Jun 02 12:44:41 2018 +0200
@@ -5901,7 +5901,7 @@
         curLine = aw.getCursorPosition()[0] + 1
         dlg = GotoDialog(lines, curLine, self.ui, None, True)
         if dlg.exec_() == QDialog.Accepted:
-            aw.gotoLine(dlg.getLinenumber())
+            aw.gotoLine(dlg.getLinenumber(), expand=True)
         
     def __gotoBrace(self):
         """
@@ -6075,8 +6075,7 @@
         """
         aw = self.activeWindow()
         if aw:
-            line, index = aw.getCursorPosition()
-            aw.foldLine(line)
+            aw.toggleCurrentFold()
         
     def __newDocumentView(self):
         """

eric ide

mercurial