branch: externals/embark
commit 29e227f7ec4cdf9fdab8b5723f4db236c81c2eb7
Author: Omar Antolín <omar.anto...@gmail.com>
Commit: Omar Antolín <omar.anto...@gmail.com>

    Use selected-window in xref exporter
    
    It's too late for embark--target-window by the time this runs, but the
    selected window should now again be the one the xref-producing command
    was run from.
---
 embark-consult.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/embark-consult.el b/embark-consult.el
index 02fdfccd90..2187451583 100644
--- a/embark-consult.el
+++ b/embark-consult.el
@@ -224,7 +224,7 @@ This function is meant to be added to 
`embark-collect-mode-hook'."
     (set-buffer
      (xref--show-xref-buffer
       (lambda () xref-items)
-      `((window . ,(embark--target-window))
+      `((window . ,(selected-window))
         (auto-jump . ,xref-auto-jump-to-first-xref)
         (display-action))))))
 

Reply via email to