mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 02:51: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:
@@ -43,7 +43,7 @@ local cmdtest = function(cmd, prep, ret1)
|
||||
eq(hisline, funcs.histget(':', -2))
|
||||
eq(cmd, funcs.histget(':'))
|
||||
-- Test that command-line window was launched
|
||||
eq('nofile', meths.get_option_value('buftype', {buf=0}))
|
||||
eq('nofile', meths.get_option_value('buftype', {}))
|
||||
eq('n', funcs.mode(1))
|
||||
feed('<CR>')
|
||||
eq('c', funcs.mode(1))
|
||||
|
||||
Reference in New Issue
Block a user