Append space after completed line. With enhanced tab completion it poses no problem
This commit is contained in:
parent
8678121210
commit
8d1e4297ec
|
@ -592,7 +592,7 @@ class Legacy(BaseMode, component.Component):
|
|||
# line.
|
||||
for cmd in self.console._commands:
|
||||
if cmd.startswith(line):
|
||||
possible_matches.append(cmd)
|
||||
possible_matches.append(cmd + " ")
|
||||
|
||||
line_prefix = ""
|
||||
else:
|
||||
|
@ -613,7 +613,7 @@ class Legacy(BaseMode, component.Component):
|
|||
# the line.
|
||||
elif len(possible_matches) == 1:
|
||||
#We only want to print eventual colors or other control characters, not return them
|
||||
new_line = line_prefix + possible_matches[0]
|
||||
new_line = line_prefix + possible_matches[0] + " "
|
||||
new_line = format_utils.remove_formatting(new_line)
|
||||
return (new_line, len(new_line))
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue