mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
ui: use Window type in win_pos consistently with win_float_pos
Also check invalid positional arguments to screen:expect()
This commit is contained in:
@@ -316,9 +316,10 @@ local ext_keys = {
|
||||
-- cmdline_block: Expected ext_cmdline block (for function definitions)
|
||||
-- wildmenu_items: Expected items for ext_wildmenu
|
||||
-- wildmenu_pos: Expected position for ext_wildmenu
|
||||
function Screen:expect(expected, attr_ids, attr_ignore)
|
||||
function Screen:expect(expected, attr_ids, attr_ignore, ...)
|
||||
local grid, condition = nil, nil
|
||||
local expected_rows = {}
|
||||
assert(next({...}) == nil, "invalid args to expect()")
|
||||
if type(expected) == "table" then
|
||||
assert(not (attr_ids ~= nil or attr_ignore ~= nil))
|
||||
local is_key = {grid=true, attr_ids=true, attr_ignore=true, condition=true,
|
||||
|
Reference in New Issue
Block a user