diff --git a/kitty/complete.py b/kitty/complete.py index 6a9b90835..54b4fdf09 100644 --- a/kitty/complete.py +++ b/kitty/complete.py @@ -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('/'):