diff options
author | hut <hut@lavabit.com> | 2011-10-11 20:22:55 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-11 20:22:55 +0200 |
commit | f67f859d8b07418d11ffe2975dc1c907ffe35a9f (patch) | |
tree | bc992083bc4f32aa88c271c6522feebc26c950f3 /ranger | |
parent | e5fb3d74a701544a872bb6d7902557c5d8e1f2a0 (diff) | |
download | ranger-f67f859d8b07418d11ffe2975dc1c907ffe35a9f.tar.gz |
defaults.commands: Fixed "gL" key
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/defaults/commands.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |