summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parenta8b1b68638a1f3abee442d1e7af6bbb755ef54f5 (diff)
downloadranger-08b619ba3a3d2d384d0da71968d47b1d56998a4d.tar.gz
api.commands: fixed missing narg when command has no arguments
Diffstat (limited to 'ranger')
-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:]:
odels' href='/akspecs/aerc/commit/models/models.go?h=0.4.0&id=c610c3cd9dd47c400e52c1858e987f5f32a7a45b'>c610c3c ^
cce7cb4 ^
















c610c3c ^























































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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132