--- a/ViewManager/ViewManager.py Fri May 18 19:41:02 2018 +0200 +++ b/ViewManager/ViewManager.py Sat May 19 16:38:28 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): """