Skip to content

Commit 9aa61c8

Browse files
authored
Ensure frame visible before hiding it (#640)
1 parent 8ec4fb4 commit 9aa61c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-ui-doc.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ We don't extract the string that `lps-line' is already displaying."
395395
(when-let ((frame (lsp-ui-doc--get-frame)))
396396
(unless lsp-ui-doc-use-webkit
397397
(lsp-ui-doc--with-buffer (erase-buffer)))
398-
(make-frame-invisible frame)))
398+
(when (frame-visible-p frame)
399+
(make-frame-invisible frame))))
399400

400401
(defun lsp-ui-doc--buffer-width ()
401402
"Calcul the max width of the buffer."

0 commit comments

Comments
 (0)