aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/icomplete.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/icomplete.el b/lisp/icomplete.el
index ceff11f9bd6..a1a67e2330a 100644
--- a/lisp/icomplete.el
+++ b/lisp/icomplete.el
@@ -463,6 +463,12 @@ Usually run by inclusion in `minibuffer-setup-hook'."
463 ((and fido-mode 463 ((and fido-mode
464 (not minibuffer-default) 464 (not minibuffer-default)
465 (eq (icomplete--category) 'file)) 465 (eq (icomplete--category) 'file))
466 ;; `fido-mode' has some extra file-sorting
467 ;; semantics even if there isn't a default,
468 ;; which is to bubble "./" to the top if it
469 ;; exists. This makes M-x dired RET RET go to
470 ;; the directory of current file, which is
471 ;; what vanilla Emacs and `ido-mode' both do.
466 `(,(lambda (comp) 472 `(,(lambda (comp)
467 (string= "./" comp))))) 473 (string= "./" comp)))))
468 thereis (cl-loop 474 thereis (cl-loop