diff options
author | hut <hut@lavabit.com> | 2010-01-09 00:28:06 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-09 00:28:06 +0100 |
commit | 07277a0a8a002464c83c81978549c42642493c2c (patch) | |
tree | bebb62828b9dacee279962ab9effa3e1e79341ca /ranger | |
parent | b2d63ef5b1dc4802572a9c52f74d7f4bb9d337a9 (diff) | |
download | ranger-07277a0a8a002464c83c81978549c42642493c2c.tar.gz |
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
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/commands.py | 4 |
1 files 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) |