mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
vim-patch:9.0.0090: no error when assigning bool to a string option (#19539)
Problem: No error when assigning bool to a string option with setwinvar().
Solution: Give an error (closes vim/vim#10766)
28f84e17b0
This commit is contained in:
@@ -303,4 +303,8 @@ describe('setbufvar() function', function()
|
||||
pcall_err(funcs.setbufvar, 1, 'changedtick', true))
|
||||
eq(2, funcs.getbufvar(1, 'changedtick'))
|
||||
end)
|
||||
it('throws error when setting a string option to a boolean value vim-patch:9.0.0090', function()
|
||||
eq('Vim:E928: String required',
|
||||
pcall_err(funcs.setbufvar, '', '&errorformat', true))
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user