Skip to content

Commit

Permalink
Use Lisp macro "delay-mode-hooks" for safe (#4401)
Browse files Browse the repository at this point in the history
  • Loading branch information
leuven65 authored Mar 28, 2024
1 parent b7f1e1a commit 83cd9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -5322,7 +5322,7 @@ If EXCLUDE-DECLARATION is non-nil, request the server to include declarations."
(if (and contents (not (equal contents "")))
(let ((lsp-help-buf-name "*lsp-help*"))
(with-current-buffer (get-buffer-create lsp-help-buf-name)
(let ((delay-mode-hooks t))
(delay-mode-hooks
(lsp-help-mode)
(with-help-window lsp-help-buf-name
(insert (string-trim-right (lsp--render-on-hover-content contents t)))))
Expand Down

0 comments on commit 83cd9b8

Please sign in to comment.