From 433cf5b2046f9b0a9f500dae1d072cc53f2a3c10 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Mon, 28 Aug 2017 09:49:56 +0200 Subject: [PATCH] Use string-match to check for dotfiles in ido * lisp/ido.el (ido-make-file-list): Use string-match to check for dotfiles instead of substring, as when using tramp simplified syntax ido-temp-list may contain empty strings. Copyright-paperwork-exempt: yes --- lisp/ido.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ido.el b/lisp/ido.el index defb744201d..5ba168b105a 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -3678,7 +3678,7 @@ in this list." ido-temp-list))))) (ido-to-end ;; move . files to end (delq nil (mapcar - (lambda (x) (if (string-equal (substring x 0 1) ".") x)) + (lambda (x) (if (string-match "^\\." x) x)) ido-temp-list))) (if (and default (member default ido-temp-list)) (if (or ido-rotate-temp ido-rotate-file-list-default) -- 2.39.2