diff options
author | Famiu Haque <famiuhaque@proton.me> | 2023-05-22 12:47:10 +0600 |
---|---|---|
committer | Famiu Haque <famiuhaque@proton.me> | 2023-05-22 13:02:07 +0600 |
commit | 576dddb46168e81aa0f78c28816082c662dedea1 (patch) | |
tree | 49c5503fd1bd2a110bc19a96c156e7c31dafbaeb /test/functional/vimscript/buf_functions_spec.lua | |
parent | 8b8e60728486e1fbb308bee2961175be355e550a (diff) | |
download | rneovim-576dddb46168e81aa0f78c28816082c662dedea1.tar.gz rneovim-576dddb46168e81aa0f78c28816082c662dedea1.tar.bz2 rneovim-576dddb46168e81aa0f78c28816082c662dedea1.zip |
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.
Diffstat (limited to 'test/functional/vimscript/buf_functions_spec.lua')
-rw-r--r-- | test/functional/vimscript/buf_functions_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/vimscript/buf_functions_spec.lua b/test/functional/vimscript/buf_functions_spec.lua index 2d6d4b8e04..2a5720fbd7 100644 --- a/test/functional/vimscript/buf_functions_spec.lua +++ b/test/functional/vimscript/buf_functions_spec.lua @@ -268,7 +268,7 @@ describe('setbufvar() function', function() end) it('may set options, including window-local and global values', function() local buf1 = meths.get_current_buf() - eq(false, meths.get_option_value('number', {win=0})) + eq(false, meths.get_option_value('number', {})) command('split') command('new') eq(2, bufmeths.get_number(curwinmeths.get_buf())) |