branch: master commit 5f22310c612a940b6c118220c301bf009779a825 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
counsel.el (counsel-git): Update default-directory --- counsel.el | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/counsel.el b/counsel.el index 402f55c..ef67be9 100644 --- a/counsel.el +++ b/counsel.el @@ -333,7 +333,9 @@ "git ls-files --full-name --") "\n" t)) - (action (lambda (x) (find-file x)))) + (action `(lambda (x) + (let ((default-directory ,default-directory)) + (find-file x))))) (ivy-read "Find file: " cands :action action)))