about summary refs log tree commit diff stats
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
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
-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)
t .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
void rooms_query(void **state);