summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Pasquet <mathieui@mathieui.net>2013-10-06 19:52:57 +0200
committerMathieu Pasquet <mathieui@mathieui.net>2013-10-06 19:52:57 +0200
commit0124ac1b0624a59fe00ee29653c2aa5e1521895d (patch)
tree5a30de287fad77b8d24a73dc320e7f7d4bcd2eee
parent08ce5c6d00ebb18a426870ce2211357d39d27913 (diff)
downloadpoezio-0124ac1b0624a59fe00ee29653c2aa5e1521895d.tar.gz
poezio-0124ac1b0624a59fe00ee29653c2aa5e1521895d.tar.bz2
poezio-0124ac1b0624a59fe00ee29653c2aa5e1521895d.tar.xz
poezio-0124ac1b0624a59fe00ee29653c2aa5e1521895d.zip
Give help about tab-specific command first in /help
(the tab-specific commands were executed first, but their help wasn’t given first)
-rw-r--r--src/core.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.py b/src/core.py
index 64d91262..3fc63295 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1477,10 +1477,10 @@ class Core(object):
if args:
command = args[0].lstrip('/').strip()
- if command in self.commands:
- tup = self.commands[command]
- elif command in self.current_tab().commands:
+ if command in self.current_tab().commands:
tup = self.current_tab().commands[command]
+ elif command in self.commands:
+ tup = self.commands[command]
else:
self.information(_('Unknown command: %s') % command, 'Error')
return