From 81cf6080bf800e74be5b218b71e1cdf90c222c04 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 27 Jun 2019 17:20:05 +0200 Subject: [PATCH] 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. --- core/autoload/ui.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/autoload/ui.el b/core/autoload/ui.el index a9cc20766..92b9df093 100644 --- a/core/autoload/ui.el +++ b/core/autoload/ui.el @@ -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)))