From 07277a0a8a002464c83c81978549c42642493c2c Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 9 Jan 2010 00:28:06 +0100 Subject: commands: fixed tabcompletion tilde "~/" in combination with incomplete filenames would cause a slash to be appended after the incomplete name, which only makes sense for complete (and unique / unambiguous) names --- ranger/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ranger/commands.py b/ranger/commands.py index 40f62735..7fb3a62c 100644 --- a/ranger/commands.py +++ b/ranger/commands.py @@ -46,7 +46,7 @@ class Command(FileManagerAware): # expand the tilde into the user directory if rel_dest.startswith('~'): - return line + expanduser(rel_dest) + '/' + rel_dest = expanduser(rel_dest) # define some shortcuts abs_dest = join(pwd, rel_dest) @@ -95,7 +95,7 @@ class Command(FileManagerAware): # expand the tilde into the user directory if rel_dest.startswith('~'): - return line + expanduser(rel_dest) + '/' + rel_dest = expanduser(rel_dest) # define some shortcuts abs_dest = join(pwd, rel_dest) -- cgit 1.4.1-2-gfad0