mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Don't append a space after directory completion
This commit is contained in:
parent
314b6138d7
commit
b2f78786a5
1 changed files with 4 additions and 1 deletions
|
@ -615,8 +615,11 @@ class Legacy(BaseMode, component.Component):
|
||||||
# return it, else we need to print out the matches without modifying
|
# return it, else we need to print out the matches without modifying
|
||||||
# the line.
|
# the line.
|
||||||
elif len(possible_matches) == 1:
|
elif len(possible_matches) == 1:
|
||||||
|
#Do not append space after directory names
|
||||||
|
new_line = line_prefix + possible_matches[0]
|
||||||
|
if not new_line.endswith("/") and not new_line.endswith(r"\\"):
|
||||||
|
new_line += " "
|
||||||
#We only want to print eventual colors or other control characters, not return them
|
#We only want to print eventual colors or other control characters, not return them
|
||||||
new_line = line_prefix + possible_matches[0] + " "
|
|
||||||
new_line = format_utils.remove_formatting(new_line)
|
new_line = format_utils.remove_formatting(new_line)
|
||||||
return (new_line, len(new_line))
|
return (new_line, len(new_line))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue