about summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parent355464a5581499ca0f9924e0513f443268b1c5fc (diff)
downloadranger-9f58095efd4aeaa363aa4df10a0546ece7f81c95.tar.gz
core.main: fixed --list-unused-keys
Diffstat (limited to 'ranger')
-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