Skip to content

Commit 4cdd1e9

Browse files
authored
Trim rust-analyzer on-hover (#2627)
Fixes #2613
1 parent 9a692a1 commit 4cdd1e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4841,7 +4841,7 @@ When language is nil render as markup if `markdown-mode' is loaded."
48414841

48424842
(cl-defgeneric lsp-clients-extract-signature-on-hover (contents _server-id)
48434843
"Extract a representative line from CONTENTS, to show in the echo area."
4844-
(car (s-lines (lsp--render-element contents))))
4844+
(car (s-lines (s-trim (lsp--render-element contents)))))
48454845

48464846
(defun lsp--render-on-hover-content (contents render-all)
48474847
"Render the content received from 'document/onHover' request.

0 commit comments

Comments
 (0)