refactor(api): rename "window" to "win" (positional parameters) #39083

continues d0af4cd909.

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 commit 71ac4db335)
This commit is contained in:
Justin M. Keyes
2026-04-15 13:31:17 -04:00
committed by github-actions[bot]
parent 373a248b0f
commit df0f88a5a9
8 changed files with 287 additions and 287 deletions

View File

@@ -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)")]]))
)