summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-05-02 12:43:56 +0200
committermathieui <mathieui@mathieui.net>2014-05-02 12:43:56 +0200
commitdb7fc6abb22884ee79d0de9df222046c9a7b4f2c (patch)
tree79e79706f172142ad819b762f3ac78e3dd201834 /plugins
parentd1e33e1863193516a46b96fc9831a3ed03570f7b (diff)
downloadpoezio-db7fc6abb22884ee79d0de9df222046c9a7b4f2c.tar.gz
poezio-db7fc6abb22884ee79d0de9df222046c9a7b4f2c.tar.bz2
poezio-db7fc6abb22884ee79d0de9df222046c9a7b4f2c.tar.xz
poezio-db7fc6abb22884ee79d0de9df222046c9a7b4f2c.zip
Fix an infinite recursion error on recursive aliases
Diffstat (limited to 'plugins')
-rw-r--r--plugins/alias.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/alias.py b/plugins/alias.py
index fc482f22..3f7e5331 100644
--- a/plugins/alias.py
+++ b/plugins/alias.py
@@ -64,9 +64,6 @@ Example of the syntax:
"""
-
-
-
from plugin import BasePlugin
from common import shell_split
@@ -150,7 +147,9 @@ class Plugin(BasePlugin):
def dummy(args):
"""Dummy function called if the command doesn’t exist"""
pass
- if name in self.core.commands:
+ if name in self.commands:
+ return dummy
+ elif name in self.core.commands:
return self.core.commands[name][0]
elif name in self.api.current_tab().commands:
return self.api.current_tab().commands[name][0]