From 145a151d62681bb8dda2515652b936c7b3a33877 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 16 Apr 2020 09:33:37 +0100 Subject: [PATCH] Correct Fido-mode's backspacing of directories with spaces Fixes: bug#40625 * lisp/icomplete.el (icomplete-fido-backward-updir): Use zap-up-to-char. --- lisp/icomplete.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/icomplete.el b/lisp/icomplete.el index ac14a850d4d..c12f3901f09 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -300,7 +300,7 @@ if that doesn't produce a completion match." (interactive) (if (and (eq (char-before) ?/) (eq (icomplete--category) 'file)) - (backward-kill-sexp 1) + (zap-up-to-char -1 ?/) (call-interactively 'backward-delete-char))) (defvar icomplete-fido-mode-map -- 2.39.2