Skip to content

Commit 34f2f76

Browse files
authored
lsp-lv-message': fix format' errors (#2369)
`lsp-lv-message' gets the hover content passed to it directly, with no % escaping. This function then proceeds to call `lv-message' passing it as the format control string, causing issues when the hover string contains % characters, as is the case when they are used in doxygen comments sent by clangd (% is doxygen markup). Fix this by using "%s" + MESSAGE instead. Fixes #2368.
1 parent ff8e2d7 commit 34f2f76

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
@@ -4914,7 +4914,7 @@ RENDER-ALL - nil if only the signature should be rendered."
49144914
(progn
49154915
(setq lsp--signature-last-buffer (current-buffer))
49164916
(let ((lv-force-update t))
4917-
(lv-message message)))
4917+
(lv-message "%s" message)))
49184918
(lv-delete-window)))
49194919

49204920
(defun lsp--handle-signature-update (signature)

0 commit comments

Comments
 (0)