mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
Console: Fix prefixed space for tab completing commands
This commit is contained in:
parent
211c27aaae
commit
569dd0c585
@ -532,7 +532,7 @@ class Legacy(BaseMode):
|
|||||||
self.write(match)
|
self.write(match)
|
||||||
else:
|
else:
|
||||||
p = " ".join(line.split(" ")[:-1])
|
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):
|
if len(new_line) > len(line):
|
||||||
line = new_line
|
line = new_line
|
||||||
cursor = len(line)
|
cursor = len(line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user