summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-07 00:38:21 +0200
committerhut <hut@lavabit.com>2010-04-07 00:38:21 +0200
commite1ebec54b79b911c0f1ef2b5f429e2c9829ec63e (patch)
tree5bc2bcfc5cc80498668ae6c11b2e04e1f273d1f6
parentf0360e8fbcf8bf29e0c8090527aff7f6feee708b (diff)
downloadranger-e1ebec54b79b911c0f1ef2b5f429e2c9829ec63e.tar.gz
core.actions.move_right(): bugfix
-rw-r--r--ranger/core/actions.py6
-rw-r--r--ranger/defaults/keys.py2
2 files changed, 6 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index d01397a7..de4a8a5d 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -31,6 +31,10 @@ class Actions(EnvironmentAware, SettingsAware):
 	# --------------------------
 	# -- Backwards Compatibility
 	# --------------------------
+	# All methods defined here are just for backwards compatibility,
+	# allowing old configuration files to work with newer versions.
+	# You can delete them and they should change nothing if you use
+	# an up-to-date configuration file.
 
 	def dummy(self, *args, **keywords):
 		"""For backwards compatibility only."""
@@ -43,7 +47,7 @@ class Actions(EnvironmentAware, SettingsAware):
 
 	def move_right(self, narg=None):
 		"""Enter the current directory or execute the current file"""
-		self.move(right=1, narg=narg)
+		self.move(right=0, narg=narg)
 
 	def move_pointer(self, relative = 0, absolute = None, narg=None):
 		"""Move the pointer down by <relative> or to <absolute>"""
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 7fbc7ce9..b407c00a 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -62,7 +62,7 @@ def initialize_commands(map):
 
 	map(KEY_DOWN, fm.move(down=1))
 	map(KEY_UP, fm.move(up=1))
-	map(KEY_RIGHT, KEY_ENTER, ctrl('j'), fm.move(right=1))
+	map(KEY_RIGHT, KEY_ENTER, ctrl('j'), fm.move(right=0))
 	map(KEY_LEFT, KEY_BACKSPACE, DEL, fm.move(left=1))
 	map(KEY_HOME, fm.move(to=0))
 	map(KEY_END, fm.move(to=-1))
us revision' href='/akspecs/ranger/blame/ranger.py?h=v1.9.0b1&id=9dc6fe07975ef2d489e5071f4e6d7223a33cb3b3'>^
08f08fb9 ^
654af129 ^
08f08fb9 ^
d8084b41 ^

99400080 ^
08f08fb9 ^

654af129 ^

d1a1173d ^
d8084b41 ^
cba63cf3 ^
b4250dbc ^

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