branch: externals/counsel commit 471d644d6bdd7d5dc6ca4efb405e6a6389dff245 Author: daanturo <dantle....@gmail.com> Commit: Basil L. Contovounesios <conto...@tcd.ie>
Improve suggested ignored file extensions regexp * counsel.el (counsel-find-file-ignore-regexp): Anchor completion-ignored-extensions suggestion at end of file name, as is usually intended (PR #2840). Copyright-paperwork-exempt: yes --- counsel.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/counsel.el b/counsel.el index e561517..2d8bc01 100644 --- a/counsel.el +++ b/counsel.el @@ -1969,7 +1969,7 @@ but the leading dot is a lot faster." (const :tag "None" nil) (const :tag "Dotfiles and Lockfiles" "\\(?:\\`\\|[/\\]\\)\\(?:[#.]\\)") (const :tag "Ignored Extensions" - ,(regexp-opt completion-ignored-extensions)) + ,(concat (regexp-opt completion-ignored-extensions) "\\'")) (regexp :tag "Regex"))) (defvar counsel--find-file-predicate nil