mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 10:31:48 +00:00
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:
@@ -71,7 +71,7 @@ describe(':terminal', function()
|
||||
end)
|
||||
|
||||
it('does not change size if updated when not visible in any window #19665', function()
|
||||
local channel = meths.get_option_value('channel', { buf = 0 })
|
||||
local channel = meths.get_option_value('channel', {})
|
||||
command('enew')
|
||||
sleep(100)
|
||||
meths.chan_send(channel, 'foo')
|
||||
|
||||
Reference in New Issue
Block a user