fix(vim.wo): never allow non-zero bufnr

This commit is contained in:
Lewis Russell
2024-06-12 15:35:54 +01:00
parent 7215512100
commit 8bf79bd13c
2 changed files with 15 additions and 6 deletions

View File

@@ -2023,6 +2023,16 @@ describe('lua stdlib', function()
vim.cmd "enew"
]]
eq(100, fn.luaeval 'vim.wo.scrolloff')
matches(
'only bufnr=0 is supported',
pcall_err(exec_lua, 'vim.wo[0][10].signcolumn = "no"')
)
matches(
'only bufnr=0 is supported',
pcall_err(exec_lua, 'local a = vim.wo[0][10].signcolumn')
)
end)
describe('vim.opt', function()