--- a/Plugins/ViewManagerPlugins/Listspace/Listspace.py Sun Feb 04 10:56:30 2018 +0100 +++ b/Plugins/ViewManagerPlugins/Listspace/Listspace.py Mon Feb 05 19:15:47 2018 +0100 @@ -449,7 +449,8 @@ self.currentStack.addWidget(win) self.currentStack.setCurrentWidget(win) editor.captionChanged.connect(self.__captionChange) - editor.cursorLineChanged.connect(self.__cursorLineChanged) + editor.cursorLineChanged.connect( + lambda lineno: self.__cursorLineChanged(lineno, editor)) index = self.editors.index(editor) self.viewlist.setCurrentRow(index) @@ -477,14 +478,15 @@ if fn: self.setEditorName(editor, fn) - def __cursorLineChanged(self, lineno): + def __cursorLineChanged(self, lineno, editor): """ Private slot to handle a change of the current editor's cursor line. - @param lineno line number of the current editor's cursor (zero based) + @param lineno line number of the editor's cursor (zero based) @type int + @param editor reference to the editor + @type Editor """ - editor = self.sender() if editor: fn = editor.getFileName() if fn: