aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/wincmd_spec.lua
blob: 98c6358f4539815d83434c73d9e1eff7230d5214 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local eq = helpers.eq
local fn = helpers.fn
local command = helpers.command

it(':wincmd accepts a count', function()
  clear()
  command('vsplit')
  eq(1, fn.winnr())
  command('wincmd 2 w')
  eq(2, fn.winnr())
end)