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:]:
db85b407750602c0fdd591ef4'>447cbcd6 ^
76e9b89a ^
447cbcd6 ^
76e9b89a ^
447cbcd6 ^
7a2665c2 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88