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