--- a/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py Sun May 23 13:33:13 2021 +0200 +++ b/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py Sun May 23 15:35:49 2021 +0200 @@ -1091,7 +1091,8 @@ if self.filenameOnly: tabName = os.path.basename(newName) else: - tabName = ericApp().getObject("Project").getRelativePath(newName) + tabName = ericApp().getObject("Project").getRelativePath( + newName) if len(tabName) > self.maxFileNameChars: tabName = "...{0}".format(tabName[-self.maxFileNameChars:]) index = self.currentTabWidget.indexOf(editor) @@ -1353,7 +1354,8 @@ switched = watched.parent() is not self.currentTabWidget self.currentTabWidget = watched.parent() if switched: - index = self.currentTabWidget.selectTab(event.position().toPoint()) + index = self.currentTabWidget.selectTab( + event.position().toPoint()) switched = ( self.currentTabWidget.widget(index) is self.activeWindow()