summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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: