Fix potential wrong-type-argument error

This commit is contained in:
Jessie Hildebrandt 2023-12-13 15:57:54 -05:00
parent f601b25b45
commit fb8e012d60

View File

@ -378,10 +378,10 @@ window is on the right. Return left if there is only one window in the fra
(defun eldoc-frame--maybe-hide-frame () (defun eldoc-frame--maybe-hide-frame ()
"Hide ElDoc child frame if it is appropriate to do so. "Hide ElDoc child frame if it is appropriate to do so.
The child frame will be hidden if it is currently visible, the child frame is The child frame will be hidden if it is live and visible, is not currently
not currently selected, and the point has moved or `eldoc-frame-mode' is no selected, and the point has moved or `eldoc-frame-mode' is no longer active."
longer active."
(when (and eldoc-frame--frame (when (and eldoc-frame--frame
(frame-live-p eldoc-frame--frame)
(frame-visible-p eldoc-frame--frame) (frame-visible-p eldoc-frame--frame)
(not (eq (selected-frame) eldoc-frame--frame)) (not (eq (selected-frame) eldoc-frame--frame))
(or (not (eq (point) eldoc-frame--last-point)) (or (not (eq (point) eldoc-frame--last-point))