summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-11 20:22:55 +0200
committerhut <hut@lavabit.com>2011-10-11 20:22:55 +0200
commitf67f859d8b07418d11ffe2975dc1c907ffe35a9f (patch)
treebc992083bc4f32aa88c271c6522feebc26c950f3
parente5fb3d74a701544a872bb6d7902557c5d8e1f2a0 (diff)
downloadranger-f67f859d8b07418d11ffe2975dc1c907ffe35a9f.tar.gz
defaults.commands: Fixed "gL" key
-rw-r--r--ranger/defaults/commands.py2
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)