Fix window-live-p error on other-popup

This commit is contained in:
Henrik Lissner 2017-12-08 22:57:23 -05:00
parent f8e8dbad8f
commit bf08e1c318
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -263,7 +263,7 @@ without leaving any trace behind (muahaha)."
(cdr (memq (selected-window) doom-popup-windows))
(setq doom-popup-other-window (selected-window))
doom-popup-windows))
(select-window (nth (mod (1- count) (length popups)) popups))
(ignore-errors (select-window (nth (mod (1- count) (length popups)) popups)))
(unless (eq (selected-window) doom-popup-other-window)
(when doom-popup-other-window
(select-window doom-popup-other-window t)