summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-09-30 20:23:30 +0200
committerhut <hut@lavabit.com>2011-09-30 21:21:59 +0200
commit9f58095efd4aeaa363aa4df10a0546ece7f81c95 (patch)
tree05048f764a9292417bb2dec5fcbd66254d03df0a
parent355464a5581499ca0f9924e0513f443268b1c5fc (diff)
downloadranger-9f58095efd4aeaa363aa4df10a0546ece7f81c95.tar.gz
core.main: fixed --list-unused-keys
-rw-r--r--ranger/core/main.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 5a7b32af..6ebe4468 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -80,14 +80,13 @@ def main():
 
 		if arg.list_unused_keys:
 			from ranger.ext.keybinding_parser import special_keys
-			tree = EnvironmentAware.env.keymanager.get_context('browser')
-			tree.merge(tree.directions)
+			maps = fm.env.keymaps['browser']
 			reversed_special_keys = dict((v,k) for k,v in special_keys.items())
 			for key in sorted(special_keys.values()):
-				if key not in tree._tree:
+				if key not in maps:
 					print("<%s>" % reversed_special_keys[key])
-			for key in range(33, 128):
-				if key not in tree._tree:
+			for key in range(33, 127):
+				if key not in maps:
 					print(chr(key))
 			return 1 if arg.fail_unless_cd else 0
 
>147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195