aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/wincmd_spec.lua
blob: b4e04b1884e60e8a8c77da60fad7f15252aed0c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)