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))))))))))
|
||||
|
||||
(defun +popup--delete-other-windows (window)
|
||||
"Called in lieu of `delete-other-windows' in popup windows.
|
||||
|
||||
Raises WINDOW (assumed to be a popup), then deletes other windows."
|
||||
(when-let* ((window (+popup/raise window)))
|
||||
(delete-other-windows window))
|
||||
"Fixes `delete-other-windows' when used from a popup window."
|
||||
(when-let* ((window (ignore-errors (+popup/raise window))))
|
||||
(let ((ignore-window-parameters t))
|
||||
(delete-other-windows window)))
|
||||
nil)
|
||||
|
||||
(defun +popup--normalize-alist (alist)
|
||||
|
Reference in New Issue
Block a user