fix: vim.opt_local:append ignoring global option value (#21382)

Closes https://github.com/neovim/neovim/issues/18225
This commit is contained in:
Phelipe Teles
2022-12-12 12:14:50 -03:00
committed by GitHub
parent 3217a31f9b
commit 8b9bf3e3b9
2 changed files with 17 additions and 1 deletions

View File

@@ -526,7 +526,7 @@ local function create_option_accessor(scope)
return setmetatable({}, {
__index = function(_, k)
return make_option(k, a.nvim_get_option_value(k, { scope = scope }))
return make_option(k, a.nvim_get_option_value(k, {}))
end,
__newindex = function(_, k, v)