From e1ebec54b79b911c0f1ef2b5f429e2c9829ec63e Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 7 Apr 2010 00:38:21 +0200 Subject: core.actions.move_right(): bugfix --- ranger/core/actions.py | 6 +++++- ranger/defaults/keys.py | 2 +- 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 or to """ 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)) -- cgit 1.4.1-2-gfad0