ui/workspaces: fix session restoration
Caused by an inverted buffer filter when saving the current session.
This commit is contained in:
parent
4cc359fd2b
commit
9e122c6847
1 changed files with 3 additions and 1 deletions
|
@ -178,7 +178,9 @@ stored in `persp-save-dir'.")
|
||||||
(posframe-delete-all))))
|
(posframe-delete-all))))
|
||||||
|
|
||||||
;; Fix #1525: Ignore dead buffers in PERSP's buffer list
|
;; Fix #1525: Ignore dead buffers in PERSP's buffer list
|
||||||
(add-hook 'persp-filter-save-buffers-functions #'buffer-live-p)
|
(defun +workspaces-dead-buffer-p (buf)
|
||||||
|
(not (buffer-live-p buf)))
|
||||||
|
(add-hook 'persp-filter-save-buffers-functions #'+workspaces-dead-buffer-p)
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; eshell
|
;; eshell
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue