From 569dd0c58588549188dd44912e3338866c3a6dc2 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 26 Mar 2012 19:27:58 +0100 Subject: [PATCH] Console: Fix prefixed space for tab completing commands --- deluge/ui/console/modes/legacy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/legacy.py b/deluge/ui/console/modes/legacy.py index 8dc25cbd6..144cfa019 100644 --- a/deluge/ui/console/modes/legacy.py +++ b/deluge/ui/console/modes/legacy.py @@ -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)