]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix window selection in counsel-locate
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 14 Oct 2015 09:11:24 +0000 (11:11 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 14 Oct 2015 09:11:24 +0000 (11:11 +0200)
* counsel.el (counsel-locate): Use `with-ivy-window'.

counsel.el

index da1e04c710490624811a37f8ae95c68001418fa6..96b7b003116a82cc1ef3517bdab14a2e9bd9774e 100644 (file)
@@ -590,8 +590,9 @@ Skip some dotfiles unless `ivy-text' requires them."
             :dynamic-collection t
             :history 'counsel-locate-history
             :action (lambda (file)
-                      (when file
-                        (find-file file)))
+                      (with-ivy-window
+                        (when file
+                          (find-file file))))
             :unwind #'counsel-delete-process))
 
 (defun counsel--generic (completion-fn)