Console: Fix prefixed space for tab completing commands

This commit is contained in:
Calum Lind 2012-03-26 19:27:58 +01:00
parent 211c27aaae
commit 569dd0c585
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ class Legacy(BaseMode):
self.write(match)
else:
p = " ".join(line.split(" ")[:-1])
new_line = " ".join([p, os.path.commonprefix(possible_matches)])
new_line = " ".join([p, os.path.commonprefix(possible_matches)]).lstrip()
if len(new_line) > len(line):
line = new_line
cursor = len(line)