Require origin argument

If it doesn't satisfy windowp, it'll cause errors.
This commit is contained in:
Henrik Lissner 2019-12-03 20:00:38 -05:00 committed by GitHub
parent 79faa02d6b
commit bcdb9f583a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,7 @@ the buffer is visible, then set another timer and try again later."
(let ((ignore-window-parameters t))
(split-window window size side)))
(defun +popup--maybe-select-window (window &optional origin)
(defun +popup--maybe-select-window (window origin)
"Select a window based on `+popup--inhibit-select' and this window's `select' parameter."
(unless +popup--inhibit-select
(let ((select (+popup-parameter 'select window)))