From: João Távora Date: Thu, 16 Apr 2020 08:33:37 +0000 (+0100) Subject: Correct Fido-mode's backspacing of directories with spaces X-Git-Tag: emacs-27.0.91~4 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=145a151d62681bb8dda2515652b936c7b3a33877;p=emacs.git Correct Fido-mode's backspacing of directories with spaces Fixes: bug#40625 * lisp/icomplete.el (icomplete-fido-backward-updir): Use zap-up-to-char. --- 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