summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/keymap.py1
-rw-r--r--ranger/defaults/keys.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/ranger/container/keymap.py b/ranger/container/keymap.py
index e44fcfd7..d52a5215 100644
--- a/ranger/container/keymap.py
+++ b/ranger/container/keymap.py
@@ -134,7 +134,6 @@ class KeyManager(object):
 		assert isinstance(context, str)
 		assert context in self.contexts, "no such context: " + context
 		return self.contexts[context]
-	__getitem__ = get_context
 
 	def use_context(self, context):
 		context = self.get_context(context)
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 593bfbbc..28028944 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -110,7 +110,7 @@ map.dir('<C-H>', alias='<backspace>')
 # ===================================================================
 # == Define keys in "browser" context:
 # ===================================================================
-map = keymanager['browser']
+map = keymanager.get_context('browser')
 map.merge(global_keys)
 map.merge(vim_aliases)
 
ames Booth <boothj5@gmail.com> 2013-12-15 23:39:04 +0000 Test "/account add" shows message on success' href='/danisanti/profani-tty/commit/tests/test_cmd_account.h?id=b2f4570886dd5c69ccd62fe8d39b4a51b8df356f'>b2f45708 ^
4216949b ^



3c0bbed7 ^



e14b4ef5 ^




52f6ad6f ^







9b41c4ee ^

8adca66f ^

3b2446c4 ^

de06c40d ^



76e7a834 ^




ba66d6b7 ^

f47bd58a ^




b4668092 ^
7a63cf2e ^



6d6bc67d ^
122fe09c ^




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