summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-06-02 21:26:58 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-06-02 21:26:58 +0200
commitf73d773106e0d506046ef9651aa41225e46150fd (patch)
treed24dfd29bba387385d49c0224aff5bf4330a63a0 /src/tabs.py
parent16ff5cf886a9c126e3158f79eded0a7274a6f8e5 (diff)
parentfc3f6d936dd821e66ac96e9797bc7868f8d4b4db (diff)
downloadpoezio-f73d773106e0d506046ef9651aa41225e46150fd.tar.gz
poezio-f73d773106e0d506046ef9651aa41225e46150fd.tar.bz2
poezio-f73d773106e0d506046ef9651aa41225e46150fd.tar.xz
poezio-f73d773106e0d506046ef9651aa41225e46150fd.zip
m
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 5edbac7c..12bf08be 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -140,7 +140,13 @@ class Tab(object):
elif command in self.core.commands: # check global commands
self.core.commands[command][0](arg)
else:
- self.core.information(_("Unknown command (%s)") % (command), _('Error'))
+ low = command.lower()
+ if low in self.commands:
+ self.commands[low][0](arg)
+ elif low in self.core.commands:
+ self.core.commands[low][0](arg)
+ else:
+ self.core.information(_("Unknown command (%s)") % (command), _('Error'))
return True
else:
return False