aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/buf_functions_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/vimscript/buf_functions_spec.lua')
-rw-r--r--test/functional/vimscript/buf_functions_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/vimscript/buf_functions_spec.lua b/test/functional/vimscript/buf_functions_spec.lua
index e957e5f5af..b521620320 100644
--- a/test/functional/vimscript/buf_functions_spec.lua
+++ b/test/functional/vimscript/buf_functions_spec.lua
@@ -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)