refactor(api): tab-local nvim_get_option_value #39810

This commit is contained in:
Justin M. Keyes
2026-05-16 11:37:37 -04:00
committed by GitHub
parent a0637e0c4e
commit 5ba0d28634
2 changed files with 40 additions and 55 deletions

View File

@@ -1969,15 +1969,15 @@ describe('API', function()
})
)
eq(
"'tab' can only be used with option 'cmdheight'",
"Conflict: 'tab' not allowed with 'shiftwidth'",
pcall_err(api.nvim_get_option_value, 'shiftwidth', { tab = tab1 })
)
eq(
"Conflict: 'tab' not allowed with 'nvim_set_option_value'",
"Conflict: 'tab' not allowed with this function",
pcall_err(api.nvim_set_option_value, 'cmdheight', 2, { tab = tab1 })
)
eq(
"Conflict: 'tab' not allowed with 'nvim_get_option_info2'",
"Conflict: 'tab' not allowed with this function",
pcall_err(api.nvim_get_option_info2, 'cmdheight', { tab = tab1 })
)
eq(