]> git.eshelyaron.com Git - emacs.git/commitdiff
Ignore empty hover info
authorFelicián Németh <felician.nemeth@gmail.com>
Fri, 20 Mar 2020 08:42:44 +0000 (09:42 +0100)
committerFelicián Németh <nemethf@tmit.bme.hu>
Fri, 20 Mar 2020 08:52:14 +0000 (04:52 -0400)
This just mimics a similar check in `eglot-help-at-point'.

* eglot.el (eglot-eldoc-function): Check emptiness of `contents' more
carefully.

GitHub-reference: fix https://github.com/joaotavora/eglot/issues/425

lisp/progmodes/eglot.el

index 8d1d2d71574e6dbb703a89515e4f25a7b79e6d34..fe06e0c9ada3dcc5a94088631fc2737ea7680c8e 100644 (file)
@@ -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)))))