From 1e5adcd713e5c0ed960a924e49958af7aec34759 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 26 May 2010 03:12:15 +0200 Subject: core.actions: shortened some code --- ranger/core/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 7c996895..69fbf32f 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -539,8 +539,8 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): pos, selected = direction.select( override=narg, lst=cwd.files, current=cwd.pointer, pagesize=self.env.termsize[0], offset=offset) - self.env.cwd.pointer = pos - self.env.cwd.correct_pointer() + cwd.pointer = pos + cwd.correct_pointer() self.env.copy = set(selected) self.env.cut = False self.ui.browser.main_column.request_redraw() -- cgit 1.4.1-2-gfad0