mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
Console: Fix prefixed space for tab completing commands
The join command adds space if 'p' is empty string.
This commit is contained in:
parent
f19caf69e0
commit
931b8aec71
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ Please use commands from the command line, eg:\n
|
||||||
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…
Add table
Add a link
Reference in a new issue