From db7fc6abb22884ee79d0de9df222046c9a7b4f2c Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 2 May 2014 12:43:56 +0200 Subject: Fix an infinite recursion error on recursive aliases --- plugins/alias.py | 7 +++---- 1 file 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] -- cgit v1.2.3