branch: externals/consult
commit ef4b83cf7d1538840a698fd8e44fcd1e6fdeeede
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    Fix consult--grep-state
    
    Do not open file temporarily when returning
---
 consult.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consult.el b/consult.el
index 006f436787..e37641fcd7 100644
--- a/consult.el
+++ b/consult.el
@@ -4338,7 +4338,7 @@ FIND-FILE is the file open function, defaulting to 
`find-file'."
         (funcall open))
       (funcall jump action (consult--grep-position
                             cand
-                            (and (not (eq action 'exit)) open))))))
+                            (and (not (eq action 'return)) open))))))
 
 (defun consult--grep-group (cand transform)
   "Return title for CAND or TRANSFORM the candidate."

Reply via email to