Fix "wrong type argument" error on pressing C-g
* eldoc-box.el (eldoc-box-quit-frame): add frame-live-p condition.
This commit is contained in:
parent
4a57d48115
commit
5b893437c8
@ -156,7 +156,7 @@ See `eldoc-box-inhibit-display-when-moving'."
|
|||||||
(defun eldoc-box-quit-frame ()
|
(defun eldoc-box-quit-frame ()
|
||||||
"Hide childframe used by eglot doc."
|
"Hide childframe used by eglot doc."
|
||||||
(interactive)
|
(interactive)
|
||||||
(when eldoc-box--frame
|
(when (and eldoc-box--frame (frame-live-p eldoc-box--frame))
|
||||||
(make-frame-invisible eldoc-box--frame t)))
|
(make-frame-invisible eldoc-box--frame t)))
|
||||||
|
|
||||||
(defun eldoc-box--enable ()
|
(defun eldoc-box--enable ()
|
||||||
|
Loading…
Reference in New Issue
Block a user