branch: elpa/eldoc-mouse
commit 8e4d2173d012e7cb1385404a6930a9e85c00f499
Author: HuangFeiyu <[email protected]>
Commit: HuangFeiyu <[email protected]>

    avoid popup when mouse is outside of the line
---
 eldoc-mouse.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eldoc-mouse.el b/eldoc-mouse.el
index 264a0e99bbe..e4846a5561a 100644
--- a/eldoc-mouse.el
+++ b/eldoc-mouse.el
@@ -109,7 +109,7 @@ POS is the buffer position under the mouse cursor."
       (add-hook 'eldoc-documentation-functions 
#'eldoc-mouse-hover-eldoc-function nil t)
       (goto-char pos)
       (setq-local eldoc-mouse-last-symbol-bounds (bounds-of-thing-at-point 
'symbol))
-      (when (thing-at-point 'symbol)
+      (when (and (not (eolp)) (thing-at-point 'symbol))
         (setq-local eldoc-mouse-unsupress-posframe t)
         (eldoc-print-current-symbol-info)
         (setq-local eldoc-mouse-mouse-overlay (make-overlay (car 
eldoc-mouse-last-symbol-bounds) (cdr eldoc-mouse-last-symbol-bounds)))

Reply via email to