summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-07-21 21:43:17 +0200
committermathieui <mathieui@mathieui.net>2018-07-21 21:44:10 +0200
commit73d198561db974dc15b4314daba776152427ed08 (patch)
tree00f43eb128c1ccdcc9a3b778f9c322fd4fa50840
parent0bdc9676d2a5065865ff0e0db4ebcbf76179de7c (diff)
downloadpoezio-73d198561db974dc15b4314daba776152427ed08.tar.gz
poezio-73d198561db974dc15b4314daba776152427ed08.tar.bz2
poezio-73d198561db974dc15b4314daba776152427ed08.tar.xz
poezio-73d198561db974dc15b4314daba776152427ed08.zip
Fix some issues found by pylint
which were probably due to a borked merge
-rw-r--r--poezio/core/core.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index 641ce213..d9ac45a0 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -1099,8 +1099,8 @@ class Core:
for state in states:
for tab in tab_refs[state]:
- if (tab.nb < self.tabs.current_tab_index and
- tab_refs[state][-1].nb > self.tabs.current_tab_index):
+ if (tab.nb < self.tabs.current_index and
+ tab_refs[state][-1].nb > self.tabs.current_index):
continue
self.command.win(str(tab.nb))
return
@@ -1113,7 +1113,7 @@ class Core:
else:
tab = self.tabs.by_name_and_class(tab_name, type_)
if tab:
- self.command_win(str(tab.nb))
+ self.command.win(str(tab.nb))
return True
return False