summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-01 21:52:59 +0200
committerhut <hut@lavabit.com>2011-10-01 21:52:59 +0200
commit08b619ba3a3d2d384d0da71968d47b1d56998a4d (patch)
treeac36ff92e6d024ab395e30688f465068c21b1520
parenta8b1b68638a1f3abee442d1e7af6bbb755ef54f5 (diff)
downloadranger-08b619ba3a3d2d384d0da71968d47b1d56998a4d.tar.gz
api.commands: fixed missing narg when command has no arguments
-rw-r--r--ranger/api/commands.py2
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:]:
'>126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162