diff options
author | hut <hut@lavabit.com> | 2011-10-01 21:52:59 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-01 21:52:59 +0200 |
commit | 08b619ba3a3d2d384d0da71968d47b1d56998a4d (patch) | |
tree | ac36ff92e6d024ab395e30688f465068c21b1520 /ranger | |
parent | a8b1b68638a1f3abee442d1e7af6bbb755ef54f5 (diff) | |
download | ranger-08b619ba3a3d2d384d0da71968d47b1d56998a4d.tar.gz |
api.commands: fixed missing narg when command has no arguments
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/api/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
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:]: |