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/ui | |
| 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/ui')
| -rw-r--r-- | test/functional/ui/decorations_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index 324362a865..ccf1810ee1 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -1910,7 +1910,7 @@ describe('decorations: signs', function() } ns = meths.create_namespace 'test' - meths.set_option_value('signcolumn', 'auto:9', {win = 0}) + meths.set_option_value('signcolumn', 'auto:9', {}) end) local example_text = [[ @@ -2222,7 +2222,7 @@ l5 ]]} -- Check truncation works too - meths.set_option_value('signcolumn', 'auto', {win = 0}) + meths.set_option_value('signcolumn', 'auto', {}) screen:expect{grid=[[ S5^l1 | @@ -2233,7 +2233,7 @@ l5 it('does not set signcolumn for signs without text', function() screen:try_resize(20, 3) - meths.set_option_value('signcolumn', 'auto', {win = 0}) + meths.set_option_value('signcolumn', 'auto', {}) insert(example_text) feed 'gg' meths.buf_set_extmark(0, ns, 0, -1, {number_hl_group='Error'}) |