diff options
author | The Flying Rapist <admin@nosuck.org> | 2015-01-13 22:14:49 +0900 |
---|---|---|
committer | The Flying Rapist <admin@nosuck.org> | 2015-01-13 22:14:49 +0900 |
commit | d9c16e79b5a608a5e35be88f81b3c60d350a8177 (patch) | |
tree | f2aa848438ace489fca2386b786ca938d4aa384a /ranger | |
parent | e0a236c01fa8fe7e5c3dbbe26d6551ff282748d9 (diff) | |
download | ranger-d9c16e79b5a608a5e35be88f81b3c60d350a8177.tar.gz |
Modified cd command to select original file, when following links.
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/config/commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index a8813de2..7441d49f 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -107,7 +107,8 @@ class cd(Command): self.shift() destination = os.path.realpath(self.rest(1)) if os.path.isfile(destination): - destination = os.path.dirname(destination) + self.fm.select_file(destination) + return else: destination = self.rest(1) |