branch: master
commit e7d778b720ce20bee101d87f95708ac19ce61d82
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    counsel.el (counsel-recoll): Simplify
---
 counsel.el |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/counsel.el b/counsel.el
index 04be3db..1d85b0b 100644
--- a/counsel.el
+++ b/counsel.el
@@ -876,7 +876,6 @@ You'll be given a list of files that match.
 Selecting a file will launch `swiper' for that file.
 INITIAL-INPUT can be given as the initial minibuffer input."
   (interactive)
-  (setq counsel--git-grep-dir default-directory)
   (ivy-read "recoll: " 'counsel-recoll-function
             :initial-input initial-input
             :dynamic-collection t
@@ -886,8 +885,7 @@ INITIAL-INPUT can be given as the initial minibuffer input."
                         (let ((file-name (match-string 1 x)))
                           (find-file file-name)
                           (unless (string-match "pdf$" x)
-                            (swiper ivy-text)))))
-            :unwind #'swiper--cleanup))
+                            (swiper ivy-text)))))))
 
 (provide 'counsel)
 

Reply via email to