From 931b8aec719b4bc51d213b2353991ce0d7e9f91c Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 26 Mar 2012 19:05:54 +0100 Subject: [PATCH] Console: Fix prefixed space for tab completing commands The join command adds space if 'p' is empty string. --- deluge/ui/console/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index f865474d6..174d667bd 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -387,7 +387,7 @@ Please use commands from the command line, eg:\n 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)