Fix completion of paths with spaces

This commit is contained in:
Kovid Goyal 2018-09-06 09:47:36 +05:30
parent b45161ecc3
commit b3db3e5732
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -225,6 +225,7 @@ def complete_remote_command(ans, cmd_name, words, new_word):
def path_completion(prefix=''):
prefix = prefix.replace(r'\ ', ' ')
dirs, files = [], []
base = '.'
if prefix.endswith('/'):