emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra f73cd70 023/395: counsel.el (counsel--find-fi


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra f73cd70 023/395: counsel.el (counsel--find-file-matcher): Use counsel-find-file-ignore-regexp
Date: Thu, 25 Feb 2021 08:31:23 -0500 (EST)

branch: externals/ivy-hydra
commit f73cd70c5ccf55bb066c40ae814fe2b60316e8e2
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    counsel.el (counsel--find-file-matcher): Use counsel-find-file-ignore-regexp
    
    * counsel.el (counsel--file-name-filter): Use 
counsel-find-file-ignore-regexp.
    
    Fixes #2304
---
 counsel.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/counsel.el b/counsel.el
index 010fc7c..7c8b9a9 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1910,7 +1910,7 @@ Skip some dotfiles unless `ivy-text' requires them."
         (setq res (cl-remove-if-not counsel--find-file-predicate res))))
     (if (or (null ivy-use-ignore)
             (null counsel-find-file-ignore-regexp)
-            (string-match-p "\\`\\." ivy-text))
+            (string-match-p counsel-find-file-ignore-regexp ivy-text))
         res
       (or (cl-remove-if
            (lambda (x)
@@ -2022,7 +2022,7 @@ If USE-IGNORE is non-nil, try to generate a command that 
respects
         (when (and use-ignore ivy-use-ignore
                    counsel-find-file-ignore-regexp
                    (cdr filter-cmd)
-                   (not (string-match-p "\\`\\." ivy-text))
+                   (not (string-match-p counsel-find-file-ignore-regexp 
ivy-text))
                    (not (string-match-p counsel-find-file-ignore-regexp
                                         (or (car ivy--old-cands) ""))))
           (let ((ignore-re (list (counsel--elisp-to-pcre



reply via email to

[Prev in Thread] Current Thread [Next in Thread]