Skip to content

Commit

Permalink
Ignore empty hover info
Browse files Browse the repository at this point in the history
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 joaotavora/eglot#425
  • Loading branch information
nemethf committed Mar 20, 2020
1 parent e81e6a2 commit 595ca62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/progmodes/eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))
Expand Down

0 comments on commit 595ca62

Please sign in to comment.