--- a/src/eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py Thu Dec 07 10:32:10 2023 +0100 +++ b/src/eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py Thu Dec 07 10:40:05 2023 +0100 @@ -852,8 +852,7 @@ """ index = self.contextMenuIndex for i in itertools.chain( - range(self.viewlist.count() - 1, index, -1), - range(index - 1, -1, -1) + range(self.viewlist.count() - 1, index, -1), range(index - 1, -1, -1) ): editor = self.editors[i] self.closeEditorWindow(editor)