General refactor & cleanup
This commit is contained in:
parent
5beb74b14d
commit
afb31659a3
5 changed files with 6 additions and 10 deletions
|
@ -197,8 +197,7 @@ and setting `doom-popup-rules' within it. Returns the window."
|
|||
(when (get-buffer-window-list (car args) nil t)
|
||||
(setq plist (append (list :autokill t) plist))
|
||||
(setcar args (clone-indirect-buffer (buffer-name (car args)) nil t)))
|
||||
(setq window (apply orig-fn args))
|
||||
(unless window
|
||||
(unless (setq window (apply orig-fn args))
|
||||
(error "No popup window was found for %s: %s" (car args) plist))
|
||||
(with-selected-window window
|
||||
(unless (eq plist t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue