From 08b619ba3a3d2d384d0da71968d47b1d56998a4d Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 1 Oct 2011 21:52:59 +0200 Subject: api.commands: fixed missing narg when command has no arguments --- ranger/api/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/api/commands.py b/ranger/api/commands.py index f034605d..759d4a37 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -265,7 +265,7 @@ class FunctionCommand(Command): if not self._based_function: return if len(self.args) == 1: - return self._based_function() + return self._based_function(**{'narg':self.quantifier}) args, keywords = list(), dict() for arg in self.args[1:]: -- cgit 1.4.1-2-gfad0