summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2017-03-12 11:30:37 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2017-03-12 11:30:37 +0100
commit18136950652b4928d71f76e5d47875c263a6e9bd (patch)
tree732b73c90141762fb0f37f54fce664f886b312bc /ranger
parentd9129ca2da43cc9f7c070d9dfe6f676003e5ccbf (diff)
downloadranger-18136950652b4928d71f76e5d47875c263a6e9bd.tar.gz
:cd tab completion again considers the whole line
Important when the directory name contains spaces.
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/config/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 9c1331df..6000b504 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -152,10 +152,10 @@ class cd(Command):
 
         if self.arg(1) == '-r':
             start = self.start(2)
-            rel_dest = self.arg(2)
+            rel_dest = self.rest(2)
         else:
             start = self.start(1)
-            rel_dest = self.arg(1)
+            rel_dest = self.rest(1)
 
         bookmarks = [v.path for v in self.fm.bookmarks.dct.values()
                      if rel_dest in v.path]
6b8b2dbd77328c8f99a2'>^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25