From c97fe860fa2a5b957a25219172ab596b2f4fc95b Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Wed, 29 May 2019 16:31:01 +0800 Subject: [PATCH] Don't show childframe when docstring is an empty string --- eldoc-box.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eldoc-box.el b/eldoc-box.el index 8f5b6c4..7728408 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -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)