aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/print_commands_spec.lua
blob: 8c164fd41bbde57ba22b31419723ca9bb750ef94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
local t = require('test.testutil')
local n = require('test.functional.testnvim')()

local clear, eq, command, fn = n.clear, t.eq, n.command, n.fn

describe(':z^', function()
  before_each(clear)

  it('correctly sets the cursor after :z^', function()
    command('z^')
    eq(1, fn.line('.'))
  end)
end)