From f67f859d8b07418d11ffe2975dc1c907ffe35a9f Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 11 Oct 2011 20:22:55 +0200 Subject: defaults.commands: Fixed "gL" key --- ranger/defaults/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py index 613d1bba..0b472378 100644 --- a/ranger/defaults/commands.py +++ b/ranger/defaults/commands.py @@ -106,6 +106,8 @@ class cd(Command): import os.path self.shift() destination = os.path.realpath(self.rest(1)) + if os.path.isfile(destination): + destination = os.path.dirname(destination) else: destination = self.rest(1) -- cgit 1.4.1-2-gfad0