mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix delete-other-windows from inside popups
Occasionally, a window will lose its popup status, but not its special window parameters, forcing non-popups to be treated like popups when delete-other-windows is called.
This commit is contained in:
@ -72,11 +72,10 @@ the buffer is visible, then set another timer and try again later."
|
|||||||
buffer ttl))))))))))
|
buffer ttl))))))))))
|
||||||
|
|
||||||
(defun +popup--delete-other-windows (window)
|
(defun +popup--delete-other-windows (window)
|
||||||
"Called in lieu of `delete-other-windows' in popup windows.
|
"Fixes `delete-other-windows' when used from a popup window."
|
||||||
|
(when-let* ((window (ignore-errors (+popup/raise window))))
|
||||||
Raises WINDOW (assumed to be a popup), then deletes other windows."
|
(let ((ignore-window-parameters t))
|
||||||
(when-let* ((window (+popup/raise window)))
|
(delete-other-windows window)))
|
||||||
(delete-other-windows window))
|
|
||||||
nil)
|
nil)
|
||||||
|
|
||||||
(defun +popup--normalize-alist (alist)
|
(defun +popup--normalize-alist (alist)
|
||||||
|
Reference in New Issue
Block a user