diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-14 20:05:13 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-14 20:05:13 +0100 |
commit | e4dccc8d8f41de1a6fec165962a3fd678265ec88 (patch) | |
tree | 044e8f95ee8ada356996e9c1ec1698867315bc17 /src/tabs.py | |
parent | 920c43dae25b06fd843dc8f8cbbf5e6bc5bf91c0 (diff) | |
download | poezio-e4dccc8d8f41de1a6fec165962a3fd678265ec88.tar.gz poezio-e4dccc8d8f41de1a6fec165962a3fd678265ec88.tar.bz2 poezio-e4dccc8d8f41de1a6fec165962a3fd678265ec88.tar.xz poezio-e4dccc8d8f41de1a6fec165962a3fd678265ec88.zip |
Fix priority for command completion
(tab command > core command)
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tabs.py b/src/tabs.py index fd9755f6..9dc24092 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -152,10 +152,10 @@ class Tab(object): if len(txt.split()) > 1 or\ (txt.endswith(' ') and not the_input.last_completion): command_name = txt.split()[0][1:] - if command_name in self.core.commands: - command = self.core.commands[command_name] - elif command_name in self.commands: + if command_name in self.commands: command = self.commands[command_name] + elif command_name in self.core.commands: + command = self.core.commands[command_name] else: # Unknown command, cannot complete return False if command[2] is None: |