neovim/test/functional/ex_cmds/wincmd_spec.lua
2024-04-10 15:53:50 +01:00

14 lines
269 B
Lua

local t = require('test.functional.testutil')()
local clear = t.clear
local eq = t.eq
local fn = t.fn
local command = t.command
it(':wincmd accepts a count', function()
clear()
command('vsplit')
eq(1, fn.winnr())
command('wincmd 2 w')
eq(2, fn.winnr())
end)