diff --git a/deluge/ui/console/modes/legacy.py b/deluge/ui/console/modes/legacy.py index 172dca5bd..600b0e618 100644 --- a/deluge/ui/console/modes/legacy.py +++ b/deluge/ui/console/modes/legacy.py @@ -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: