test: don't unnecessarily specify win/buf for nvim_(get|set)_option_value

`nvim_(get|set)_option_value` pick the current buffer / window by default for buffer-local/window-local (but not global-local) options. So specifying `buf = 0` or `win = 0` in opts is unnecessary for those options. This PR removes those to reduce code clutter.
This commit is contained in:
Famiu Haque
2023-05-22 12:47:10 +06:00
parent 8b8e607284
commit 576dddb461
22 changed files with 76 additions and 76 deletions

View File

@@ -160,7 +160,7 @@ describe('vim.secure', function()
-- Cannot write file
pcall_err(command, 'write')
eq(true, meths.get_option_value('readonly', {buf=0}))
eq(true, meths.get_option_value('readonly', {}))
end)
end)