summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-09 00:28:06 +0100
committerhut <hut@lavabit.com>2010-01-09 00:28:06 +0100
commit07277a0a8a002464c83c81978549c42642493c2c (patch)
treebebb62828b9dacee279962ab9effa3e1e79341ca /ranger
parentb2d63ef5b1dc4802572a9c52f74d7f4bb9d337a9 (diff)
downloadranger-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.py4
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)
Garbe <garbeam@wmii.de> 2006-07-13 09:32:22 +0200 added logo+description' href='/acidbong/suckless/dwm/commit/README?h=6.4&id=650a1fb4e1a798aca48a53739f5bb2649191bc1c'>650a1fb ^
01a8d44 ^
650a1fb ^
1076f2b
650a1fb ^
1076f2b
650a1fb ^
1076f2b

650a1fb ^
1076f2b
eff4478 ^
1076f2b
7b5638f ^

98c6a92 ^
98c6a92 ^

02cea3b ^
7b5638f ^
2b66f7a ^
98c6a92 ^
7b5638f ^
1076f2b

dc5c070 ^

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48