ViewManager/ViewManager.py

changeset 958
9f712690525e
parent 949
f888270da22e
child 1112
8a7d1b9d18db
--- a/ViewManager/ViewManager.py	Sat Mar 26 12:51:13 2011 +0100
+++ b/ViewManager/ViewManager.py	Sun Mar 27 12:22:31 2011 +0200
@@ -4089,7 +4089,9 @@
         Private method to handle the goto action.
         """
         aw = self.activeWindow()
-        dlg = GotoDialog(aw.lines(), self.ui, None, True)
+        lines = aw.lines()
+        curLine = aw.getCursorPosition()[0] + 1
+        dlg = GotoDialog(lines, curLine, self.ui, None, True)
         if dlg.exec_() == QDialog.Accepted:
             aw.gotoLine(dlg.getLinenumber())
         

eric ide

mercurial