about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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