aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/012_directory_spec.lua
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@proton.me>2023-05-22 12:47:10 +0600
committerFamiu Haque <famiuhaque@proton.me>2023-05-22 13:02:07 +0600
commit576dddb46168e81aa0f78c28816082c662dedea1 (patch)
tree49c5503fd1bd2a110bc19a96c156e7c31dafbaeb /test/functional/legacy/012_directory_spec.lua
parent8b8e60728486e1fbb308bee2961175be355e550a (diff)
downloadrneovim-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/legacy/012_directory_spec.lua')
-rw-r--r--test/functional/legacy/012_directory_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/legacy/012_directory_spec.lua b/test/functional/legacy/012_directory_spec.lua
index f44ba10f7f..25d0dcb81e 100644
--- a/test/functional/legacy/012_directory_spec.lua
+++ b/test/functional/legacy/012_directory_spec.lua
@@ -58,7 +58,7 @@ describe("'directory' option", function()
end of testfile]])
meths.set_option_value('swapfile', true, {})
- meths.set_option_value('swapfile', true, {buf=0})
+ meths.set_option_value('swapfile', true, {})
meths.set_option_value('directory', '.', {})
-- sanity check: files should not exist yet.
@@ -83,7 +83,7 @@ describe("'directory' option", function()
meths.set_option_value('directory', 'Xtest.je', {})
command('bdelete')
command('edit Xtest2/Xtest3')
- eq(true, meths.get_option_value('swapfile', {buf=0}))
+ eq(true, meths.get_option_value('swapfile', {}))
poke_eventloop()
eq({ "Xtest3" }, ls_dir_sorted("Xtest2"))