From b835e7b6ec29f06a7dc0b68b4c539eea4c5bcb1f Mon Sep 17 00:00:00 2001 From: Chenty <78651635+Trap101@users.noreply.github.com> Date: Fri, 23 Aug 2024 00:20:17 +0800 Subject: [PATCH] fix(workspaces): don't overwrite previously workspaces on save Otherwise, each time `+workspace-save` is called, all prior saved workspaces would be deleted from `+workspaces-data-file` before inserting the new one. --- modules/ui/workspaces/autoload/workspaces.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/workspaces/autoload/workspaces.el b/modules/ui/workspaces/autoload/workspaces.el index 39874bafa..46b5c00af 100644 --- a/modules/ui/workspaces/autoload/workspaces.el +++ b/modules/ui/workspaces/autoload/workspaces.el @@ -118,7 +118,7 @@ Returns t on success, nil otherwise." (unless (+workspace-exists-p name) (error "'%s' is an invalid workspace" name)) (let ((fname (expand-file-name +workspaces-data-file persp-save-dir))) - (persp-save-to-file-by-names fname *persp-hash* (list name)) + (persp-save-to-file-by-names fname *persp-hash* (list name) t) (and (member name (persp-list-persp-names-in-file fname)) t)))