Skip to content

Commit

Permalink
Don't show childframe when docstring is an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
casouri committed May 29, 2019
1 parent 0071538 commit c97fe86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eldoc-box.el
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ Checkout `lsp-ui-doc--make-frame', `lsp-ui-doc--move-frame'."

(defun eldoc-box--eldoc-message-function (str &rest args)
"Front-end for eldoc. Display STR in childframe and ARGS works like `message'."
(when (stringp str)
(when (and (stringp str) (not (equal str "")))
(let ((doc (apply #'format str args)))
(unless (and eldoc-box-only-multi-line (eq (cl-count ?\n doc) 0))
(eldoc-box--display doc)
Expand Down

0 comments on commit c97fe86

Please sign in to comment.