ex_cmds.c: Fix bug in ex_z (#6557)

vim-patch:8.0.0571
This commit is contained in:
sander2
2017-04-21 15:45:51 +02:00
committed by Justin M. Keyes
parent a396874da0
commit f50e03f2e3
2 changed files with 21 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
local helpers = require('test.functional.helpers')(after_each)
local clear, eq, command, funcs =
helpers.clear, helpers.eq, helpers.command, helpers.funcs
describe(':z^', function()
before_each(clear)
it('correctly sets the cursor after :z^', function()
command('z^')
eq(1, funcs.line('.'))
end)
end)