From 18136950652b4928d71f76e5d47875c263a6e9bd Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Sun, 12 Mar 2017 11:30:37 +0100 Subject: :cd tab completion again considers the whole line Important when the directory name contains spaces. --- ranger/config/commands.py | 4 ++-- 1 file 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] -- cgit 1.4.1-2-gfad0