Skip to content

Commit 2214908

Browse files
committed
[lsp-ui-doc] Add lsp-ui-doc--delete-frame to window-configuration-change-hook
1 parent 7e2db0e commit 2214908

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lsp-ui-doc.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,8 @@ HEIGHT is the documentation number of lines."
582582
(unless (equal (ad-get-arg 0) (selected-window))
583583
(lsp-ui-doc--hide-frame)))
584584

585-
(defadvice load-theme (after lsp-ui-doc--delete-frame-on-theme-load activate)
586-
"Force a frame refresh on theme reload."
587-
(lsp-ui-doc--delete-frame))
585+
(advice-add 'load-theme :before #'lsp-ui-doc--delete-frame)
586+
(add-hook 'window-configuration-change-hook #'lsp-ui-doc--delete-frame)
588587

589588
(defun lsp-ui-doc-enable-eldoc ()
590589
(setq-local eldoc-documentation-function 'lsp-ui-doc--eldoc))

0 commit comments

Comments
 (0)