Skip to content

Commit 00feabc

Browse files
Copilotsudo-tee
andcommitted
fix: replace vim.deepcopy with vim.tbl_extend shallow copy in M.mutate
Co-authored-by: sudo-tee <[email protected]>
1 parent b2806ee commit 00feabc

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.deepcopy(current)
213+
local old = vim.tbl_extend('force', {}, current)
214214
mutator(current)
215215
queue_emit(key, current, old)
216216
return current

0 commit comments

Comments
 (0)