diff --git a/eglot.el b/eglot.el index e38080ff..9ed66c17 100644 --- a/eglot.el +++ b/eglot.el @@ -1548,8 +1548,10 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp." (when-let (info (and contents (eglot--hover-info contents range))) - (let ((message-truncate-lines t)) - (eldoc-message info)))))) + (let* ((end (min (1- (window-width (minibuffer-window))) + (string-match-p "\n" info))) + (msg (substring info nil end))) + (eldoc-message msg)))))) :deferred :textDocument/hover)) (when (eglot--server-capable :documentHighlightProvider) (jsonrpc-async-request