branch: master commit c99956aae847ec77d09ef7eb8cc3d02fdeafa356 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
Fix window selection in counsel-locate * counsel.el (counsel-locate): Use `with-ivy-window'. --- counsel.el | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/counsel.el b/counsel.el index da1e04c..96b7b00 100644 --- a/counsel.el +++ b/counsel.el @@ -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)