From 8d1e4297eced08c430121f734c3ab7702b7253a4 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Mon, 28 May 2012 21:14:22 +0200 Subject: [PATCH] Append space after completed line. With enhanced tab completion it poses no problem --- deluge/ui/console/modes/legacy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: