summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-13 00:39:13 +0200
committermathieui <mathieui@mathieui.net>2017-10-13 00:39:13 +0200
commitbbfb834827a47195d1907674399ff18685be4fb9 (patch)
tree7a3d6d1d283753633480511f1925f23eddc64d43 /poezio
parent6626208983e0360c4dadfc4d615b34a819c793f7 (diff)
downloadpoezio-bbfb834827a47195d1907674399ff18685be4fb9.tar.gz
poezio-bbfb834827a47195d1907674399ff18685be4fb9.tar.bz2
poezio-bbfb834827a47195d1907674399ff18685be4fb9.tar.xz
poezio-bbfb834827a47195d1907674399ff18685be4fb9.zip
Stop /win at the first tab found
Diffstat (limited to 'poezio')
-rw-r--r--poezio/core/commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index e31d8e59..5a28182b 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -218,6 +218,9 @@ class CommandCore:
for tab_name in tab.matching_names():
if tab_name[1] and name in tab_name[1].lower():
match = tab
+ break
+ if match:
+ break
if match is None:
self.core.previous_tab_nb = prev_nb
return