mirror of
https://github.com/neovim/neovim.git
synced 2026-04-30 19:24:09 +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:
@@ -21,7 +21,7 @@ before_each(function ()
|
||||
-- ["mac"] = '\r',
|
||||
-- }
|
||||
|
||||
-- local line_ending = format_line_ending[vim.api.nvim_get_option_value('fileformat', {buf=0})]
|
||||
-- local line_ending = format_line_ending[vim.api.nvim_get_option_value('fileformat', {})]
|
||||
|
||||
|
||||
function test_register(bufnr, id, offset_encoding, line_ending)
|
||||
|
||||
Reference in New Issue
Block a user