From b3db3e5732ffa8f8f74d8a9938ab51bf9f393284 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Sep 2018 09:47:36 +0530 Subject: [PATCH] Fix completion of paths with spaces --- kitty/complete.py | 1 + 1 file changed, 1 insertion(+) 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('/'):