emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 2209779 49/54: Fix #425: Ignore empty hover info


From: João Távora
Subject: [elpa] externals/eglot 2209779 49/54: Fix #425: Ignore empty hover info
Date: Thu, 16 Apr 2020 05:31:53 -0400 (EDT)

branch: externals/eglot
commit 2209779972eee595ff6ea8e75c002f7e5726b0c8
Author: Felicián Németh <address@hidden>
Commit: Felicián Németh <address@hidden>

    Fix #425: Ignore empty hover info
    
    This just mimics a similar check in `eglot-help-at-point'.
    
    * eglot.el (eglot-eldoc-function): Check emptiness of `contents' more
    carefully.
---
 eglot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 8d1d2d7..fe06e0c 100644
--- a/eglot.el
+++ b/eglot.el
@@ -2296,7 +2296,7 @@ potentially rename EGLOT's help buffer."
          :success-fn (eglot--lambda ((Hover) contents range)
                        (unless sig-showing
                          (when-buffer-window
-                          (when-let (info (and contents
+                          (when-let (info (and (not (seq-empty-p contents))
                                                (eglot--hover-info contents
                                                                   range)))
                             (eglot--update-doc info thing-at-point)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]