branch: elpa/eldoc-mouse
commit a827f16c6145f6b42a450b72cb068371c5bdbd5d
Author: Vincent Zhang <[email protected]>
Commit: Vincent Zhang <[email protected]>

    style(eldoc-mouse): Adjust indentation for better readability
---
 eldoc-mouse.el | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/eldoc-mouse.el b/eldoc-mouse.el
index 6bd2c181f0e..2a9d6e37bdf 100644
--- a/eldoc-mouse.el
+++ b/eldoc-mouse.el
@@ -245,14 +245,14 @@ POS is the buffer position under the mouse cursor."
   (interactive "e")
   (when eldoc-mouse-mode
     (let ((pos (posn-point (event-start event))))
-    (when (and pos (number-or-marker-p pos))
-      ;; Debounce to avoid spamming eglot.
-      (when eldoc-mouse-mouse-timer
-        (cancel-timer eldoc-mouse-mouse-timer))
-      (setq eldoc-mouse-mouse-timer
-            (run-with-idle-timer
-             eldoc-mouse-idle-time nil #'eldoc-mouse-show-doc-at
-             pos))))))
+      (when (and pos (number-or-marker-p pos))
+        ;; Debounce to avoid spamming eglot.
+        (when eldoc-mouse-mouse-timer
+          (cancel-timer eldoc-mouse-mouse-timer))
+        (setq eldoc-mouse-mouse-timer
+              (run-with-idle-timer
+                 eldoc-mouse-idle-time nil #'eldoc-mouse-show-doc-at
+                 pos))))))
 
 (defun eldoc-mouse--eglot-eldoc-documentation-function (cb)
   "Modify the `eglot-hover-eldoc-function'.

Reply via email to