Skip to content

Commit a79ccaa

Browse files
committed
fix(store): use deepcopy on mutate
1 parent b89831b commit a79ccaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/opencode/state/store.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function M.mutate(key, mutator)
210210
end
211211

212212
local current = _state[key]
213-
local old = vim.tbl_extend('force', {}, current)
213+
local old = vim.deepcopy(current)
214214
mutator(current)
215215
queue_emit(key, current, old)
216216
return current

0 commit comments

Comments
 (0)