From 0124ac1b0624a59fe00ee29653c2aa5e1521895d Mon Sep 17 00:00:00 2001 From: Mathieu Pasquet Date: Sun, 6 Oct 2013 19:52:57 +0200 Subject: Give help about tab-specific command first in /help MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (the tab-specific commands were executed first, but their help wasn’t given first) --- src/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3