diff options
author | hut <hut@lavabit.com> | 2010-04-07 00:38:21 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-07 00:38:21 +0200 |
commit | e1ebec54b79b911c0f1ef2b5f429e2c9829ec63e (patch) | |
tree | 5bc2bcfc5cc80498668ae6c11b2e04e1f273d1f6 | |
parent | f0360e8fbcf8bf29e0c8090527aff7f6feee708b (diff) | |
download | ranger-e1ebec54b79b911c0f1ef2b5f429e2c9829ec63e.tar.gz |
core.actions.move_right(): bugfix
-rw-r--r-- | ranger/core/actions.py | 6 | ||||
-rw-r--r-- | 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 <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)) |