doom/window-maximizer-buffer: fail gracefully in popups
Doesn't work within popups and it's non-trivial to fix this, so better it fail gracefully with a suggestion, instead of fail silently.
This commit is contained in:
parent
d6aa19b638
commit
81cf6080bf
1 changed files with 3 additions and 0 deletions
|
@ -105,6 +105,9 @@ Alternatively, use `doom/window-enlargen'."
|
|||
(if (and (one-window-p)
|
||||
(assq ?_ register-alist))
|
||||
(jump-to-register ?_)
|
||||
(when (and (bound-and-true-p +popup-mode)
|
||||
(+popup-window-p))
|
||||
(user-error "Cannot maximize a popup, use `+popup/raise' first or use `doom/window-enlargen' instead"))
|
||||
(window-configuration-to-register ?_)
|
||||
(delete-other-windows)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue