Fix kill-this-buffer's dashboard addiction, the sequel
Again, the dashboard was being switched to too early (there were still other real buffers to display).
This commit is contained in:
parent
0e0966a4ce
commit
d2bab1dc4d
1 changed files with 6 additions and 3 deletions
|
@ -531,11 +531,14 @@ instead)."
|
|||
(let ((buf (current-buffer)))
|
||||
(cond ((window-dedicated-p)
|
||||
(delete-window))
|
||||
((or (eq buf (doom-fallback-buffer))
|
||||
(doom-real-buffer-p buf))
|
||||
((eq buf (doom-fallback-buffer))
|
||||
(bury-buffer)
|
||||
(when (cdr (get-buffer-window-list))
|
||||
(doom--cycle-real-buffers nil)))
|
||||
((doom-real-buffer-p buf)
|
||||
(doom--cycle-real-buffers -1)
|
||||
(kill-buffer buf)
|
||||
(when (cdr (get-buffer-window-list (current-buffer) nil t))
|
||||
(when (cdr (get-buffer-window-list))
|
||||
(doom--cycle-real-buffers nil)))
|
||||
(t
|
||||
(funcall orig-fn)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue