summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/keymap.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/ranger/container/keymap.py b/ranger/container/keymap.py
index e09c9610..60272be0 100644
--- a/ranger/container/keymap.py
+++ b/ranger/container/keymap.py
@@ -24,23 +24,22 @@ from ranger.ext.keybinding_parser import parse_keybinding, \
 
 MAX_ALIAS_RECURSION = 20
 FUNC = 'func'
-DIRECTION = 'direction'
 DIRARG = 'dir'
 ALIASARG = 'alias'
 
 class CommandArgs(object):
 	"""The arguments which are passed to a keybinding function"""
-	def __init__(self, fm, widget, keybuffer):
+	def __init__(self, fm, widget, keybuf):
 		self.fm = fm
 		self.wdg = widget
-		self.keybuffer = keybuffer
-		self.n = keybuffer.quant
-		self.direction = keybuffer.directions and keybuffer.directions[0] or None
-		self.directions = keybuffer.directions
-		self.keys = str(keybuffer)
-		self.matches = keybuffer.matches
-		self.match = keybuffer.matches and keybuffer.matches[0] or None
-		self.binding = keybuffer.command
+		self.keybuffer = keybuf
+		self.n = keybuf.quant
+		self.direction = keybuf.directions and keybuf.directions[0] or None
+		self.directions = keybuf.directions
+		self.keys = str(keybuf)
+		self.matches = keybuf.matches
+		self.match = keybuf.matches and keybuf.matches[0] or None
+		self.binding = keybuf.command
 
 	@staticmethod
 	def from_widget(widget):
@@ -276,7 +275,8 @@ class KeyBuffer(object):
 			self.tree_pointer = self.tree_pointer._tree
 		if isinstance(self.tree_pointer, Binding):
 			if self.tree_pointer.alias:
-				self.key_queue.extend(parse_keybinding(self.tree_pointer.alias))
+				keys = parse_keybinding(self.tree_pointer.alias)
+				self.key_queue.extend(keys)
 				self.tree_pointer = self.keymap._tree
 				self.max_alias_recursion -= 1
 			else:
gt; 2019-12-07 18:06:16 -0800 5797 - move `enumerate/` to `tools/` directory' href='/akkartik/mu/commit/build?h=main&id=72f278ae6bb52e17dbdeac0fce41a794e8dfd0d1'>72f278ae ^
248e789e ^

bfadbd4b ^





f898ee7a ^
6e1eeeeb ^
248e789e ^

72f278ae ^
bfadbd4b ^
248e789e ^
bfadbd4b ^
248e789e ^



e1eefb8a ^
248e789e ^
75f2c123 ^



248e789e ^
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