summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-14 20:05:13 +0100
committermathieui <mathieui@mathieui.net>2011-11-14 20:05:13 +0100
commite4dccc8d8f41de1a6fec165962a3fd678265ec88 (patch)
tree044e8f95ee8ada356996e9c1ec1698867315bc17 /src/tabs.py
parent920c43dae25b06fd843dc8f8cbbf5e6bc5bf91c0 (diff)
downloadpoezio-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.py6
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: