Skip to content

Commit b771576

Browse files
committed
Clear overlay state vars in lsp-ui-doc--hide-frame
Fixes #695
1 parent deb08ed commit b771576

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lsp-ui-doc.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,12 @@ We don't extract the string that `lps-line' is already displaying."
420420

421421
(defun lsp-ui-doc--hide-frame (&optional _win)
422422
"Hide the frame."
423-
(setq lsp-ui-doc--bounds nil
424-
lsp-ui-doc--from-mouse nil)
425423
(lsp-ui-util-safe-delete-overlay lsp-ui-doc--inline-ov)
426424
(lsp-ui-util-safe-delete-overlay lsp-ui-doc--highlight-ov)
425+
(setq lsp-ui-doc--bounds nil
426+
lsp-ui-doc--from-mouse nil
427+
lsp-ui-doc--inline-ov nil
428+
lsp-ui-doc--highlight-ov nil)
427429
(when-let ((frame (lsp-ui-doc--get-frame)))
428430
(when (frame-visible-p frame)
429431
(make-frame-invisible frame))))

0 commit comments

Comments
 (0)