summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/config/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index ba7d51d3..32f5da8c 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)
 
itle='author James Booth <boothj5@gmail.com> 2015-01-10 01:17:38 +0000 committer James Booth <boothj5@gmail.com> 2015-01-10 01:17:38 +0000 Added tests for clearing chat sessions on lost connection' href='/danisanti/profani-tty/commit/tests/test_server_events.h?id=f180925c3b4c28d3839efe5526596506c781a9ec'>f180925c ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14