mirror of
https://github.com/neovim/neovim.git
synced 2026-06-16 08:41:15 +00:00
refactor(api): rename "window" to "win" (positional parameters) #39083
continuesd0af4cd909. This commit renames positional parameters. This is only "cosmetic", but is intended to make it extra clear which name is preferred, since people often copy existing code despite the guidelines in `:help dev-naming`. (cherry picked from commit71ac4db335)
This commit is contained in:
committed by
github-actions[bot]
parent
373a248b0f
commit
df0f88a5a9
@@ -300,7 +300,7 @@ describe('luaeval(vim.api.…)', function()
|
||||
)
|
||||
end)
|
||||
|
||||
it('errors out correctly when working with API', function()
|
||||
it('validation', function()
|
||||
-- Conversion errors
|
||||
eq(
|
||||
[[Vim(call):E5108: Lua: [string "luaeval()"]:1: Invalid 'obj': Cannot convert given Lua table]],
|
||||
@@ -334,7 +334,7 @@ describe('luaeval(vim.api.…)', function()
|
||||
remove_trace(exc_exec([[call luaeval("vim.api.nvim_buf_get_lines(0, 1.5, 1, false)")]]))
|
||||
)
|
||||
eq(
|
||||
[[Vim(call):E5108: Lua: [string "luaeval()"]:1: Invalid 'window': Expected Lua number]],
|
||||
[[Vim(call):E5108: Lua: [string "luaeval()"]:1: Invalid 'win': Expected Lua number]],
|
||||
remove_trace(exc_exec([[call luaeval("vim.api.nvim_win_is_valid(nil)")]]))
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user