##// END OF EJS Templates
fix inappropriate str.replace in completer.expand_user...
MinRK -
Show More
@@ -173,9 +173,12 b' def expand_user(path):'
173
173
174 if path.startswith('~'):
174 if path.startswith('~'):
175 tilde_expand = True
175 tilde_expand = True
176 rest = path[1:]
176 rest = len(path)-1
177 newpath = os.path.expanduser(path)
177 newpath = os.path.expanduser(path)
178 tilde_val = newpath.replace(rest, '')
178 if rest:
179 tilde_val = newpath[:-rest]
180 else:
181 tilde_val = newpath
179
182
180 return newpath, tilde_expand, tilde_val
183 return newpath, tilde_expand, tilde_val
181
184
General Comments 0
You need to be logged in to leave comments. Login now