print_commands_spec.lua 305 B

1234567891011121314
  1. local t = require('test.testutil')
  2. local n = require('test.functional.testnvim')()
  3. local clear, eq, command, fn = n.clear, t.eq, n.command, n.fn
  4. describe(':z^', function()
  5. before_each(clear)
  6. it('correctly sets the cursor after :z^', function()
  7. command('z^')
  8. eq(1, fn.line('.'))
  9. end)
  10. end)