branch: elpa/eldoc-mouse
commit d01b16baaa82f3a6acb5e6d9c6d4ff76f3b742ed
Author: huangfeiyu <[email protected]>
Commit: GitHub <[email protected]>

    Update eldoc-mouse.el
---
 eldoc-mouse.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eldoc-mouse.el b/eldoc-mouse.el
index bcfabdd9afc..a2947e9ad2c 100644
--- a/eldoc-mouse.el
+++ b/eldoc-mouse.el
@@ -43,8 +43,8 @@ POS is the buffer position under the mouse cursor."
                  (> pos (cdr eldoc-mouse-last-symbol-bounds))))
     (save-excursion
       (add-hook 'eldoc-documentation-functions #'eglot-hover-eldoc-function 
nil t)
-      (setq-local eldoc-mouse-last-symbol-bounds (bounds-of-thing-at-point 
'symbol))
       (goto-char pos)
+      (setq-local eldoc-mouse-last-symbol-bounds (bounds-of-thing-at-point 
'symbol))
       (when (thing-at-point 'symbol)
         (eldoc-print-current-symbol-info))
       (remove-hook 'eldoc-documentation-functions #'eglot-hover-eldoc-function 
t))))

Reply via email to