Skip to content

Commit

Permalink
Clear overlay state vars in lsp-ui-doc--hide-frame
Browse files Browse the repository at this point in the history
Fixes #695
  • Loading branch information
Lenbok committed May 15, 2022
1 parent 370022b commit 6612828
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lsp-ui-doc.el
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,12 @@ We don't extract the string that `lps-line' is already displaying."

(defun lsp-ui-doc--hide-frame (&optional _win)
"Hide the frame."
(setq lsp-ui-doc--bounds nil
lsp-ui-doc--from-mouse nil)
(lsp-ui-util-safe-delete-overlay lsp-ui-doc--inline-ov)
(lsp-ui-util-safe-delete-overlay lsp-ui-doc--highlight-ov)
(setq lsp-ui-doc--bounds nil
lsp-ui-doc--from-mouse nil
lsp-ui-doc--inline-ov nil
lsp-ui-doc--highlight-ov nil)
(when-let ((frame (lsp-ui-doc--get-frame)))
(when (frame-visible-p frame)
(make-frame-invisible frame))))
Expand Down

0 comments on commit 6612828

Please sign in to comment.