Fix kill-current-buffer advise supressing exwm hooks

This commit is contained in:
Henrik Lissner 2019-08-05 17:02:23 -04:00
parent e89bbe573b
commit 80988a7ad4
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -240,7 +240,8 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
(memq (switch-to-prev-buffer nil t) (list buf 'nil)))
(switch-to-buffer (doom-fallback-buffer)))
(unless (delq (selected-window) (get-buffer-window-list buf nil t))
(kill-buffer buf)))))
(kill-buffer buf)))
(run-hooks 'buffer-list-update-hook)))
((funcall orig-fn)))))