]> git.eshelyaron.com Git - emacs.git/commitdiff
Correct Fido-mode's backspacing of directories with spaces
authorJoão Távora <joaotavora@gmail.com>
Thu, 16 Apr 2020 08:33:37 +0000 (09:33 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 16 Apr 2020 08:33:37 +0000 (09:33 +0100)
Fixes: bug#40625
* lisp/icomplete.el (icomplete-fido-backward-updir): Use
zap-up-to-char.

lisp/icomplete.el

index ac14a850d4d036a96ae6b337d499f129ac383e00..c12f3901f098af6572d8b6a2406d0b4da69ed4ab 100644 (file)
@@ -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