branch: externals/eglot
commit 3705da07a628c63bf57276fbd80b9d49029666e8
Author: Stefan Kangas <[email protected]>
Commit: Stefan Kangas <[email protected]>

    Fix #763: Un-reverse references in xref buffer
---
 eglot.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eglot.el b/eglot.el
index 712ad17298..72cf0c44fc 100644
--- a/eglot.el
+++ b/eglot.el
@@ -2148,6 +2148,7 @@ may be called multiple times (respecting the protocol of
          (let (,collected)
            (cl-flet ((,collector (xref) (push xref ,collected)))
              ,@body)
+           (setq ,collected (nreverse ,collected))
            (sort ,collected eglot-xref-lessp-function))
        (maphash (lambda (_uri buf) (kill-buffer buf)) 
eglot--temp-location-buffers)
        (clrhash eglot--temp-location-buffers))))

Reply via email to