From e4dccc8d8f41de1a6fec165962a3fd678265ec88 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 14 Nov 2011 20:05:13 +0100 Subject: [PATCH] Fix priority for command completion (tab command > core command) --- src/tabs.py | 6 +++--- 1 file 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: