mirror of
https://github.com/neovim/neovim.git
synced 2026-10-26 07:30:20 -05:00
1 parent
ca243f06dd
commit
52823616bc
1 file changed
+5
-1
@@ -20,7 +20,11 @@ local bufstates = vim.defaulttable(function(_)
|
|||||||
return setmetatable({ applied = {} }, {
|
return setmetatable({ applied = {} }, {
|
||||||
__index = globalstate,
|
__index = globalstate,
|
||||||
__newindex = function(state, key, value)
|
__newindex = function(state, key, value)
|
||||||
rawset(state, key, (globalstate[key] ~= value) and value or nil)
|
if globalstate[key] == value then
|
||||||
|
rawset(state, key, nil)
|
||||||
|
else
|
||||||
|
rawset(state, key, value)
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in new issue
Block a user