From 2cd8bc7768ab3bdb95a2bdf49565db96d75659c1 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 10 Dec 2014 01:54:21 +0100 Subject: api.commands: pass attributes of AliasCommand to actual command --- ranger/api/commands.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ranger/api/commands.py b/ranger/api/commands.py index 98b0a23a..7f5fcf36 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -405,8 +405,13 @@ class AliasCommand(Command): return self._make_cmd().cancel() def _make_cmd(self): - Cmd = self.fm.commands.get_command(self._line.split()[0]) - return Cmd(self._line + ' ' + self.rest(1)) + cmd_class = self.fm.commands.get_command(self._line.split()[0]) + cmd = cmd_class(self._line + ' ' + self.rest(1)) + cmd.quantifier = self.quantifier + cmd.escape_macros_for_shell = self.escape_macros_for_shell + cmd.resolve_macros = self.resolve_macros + cmd.allow_abbrev = self.allow_abbrev + return cmd if __name__ == '__main__': -- cgit 1.4.1-2-gfad0 h tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/999spaces.cc
blob: e28faa78caa0c0772709bd510e533481069944d5 (plain) (blame)
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