aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/print_commands_spec.lua
diff options
context:
space:
mode:
authorsander2 <sanderbosma@gmail.com>2017-04-21 15:45:51 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-21 15:45:51 +0200
commitf50e03f2e35cf4bee8cedb2c95bf9619f3b57bc2 (patch)
tree82101fa9b63fe270ccb958df52a7d76d6a2ec640 /test/functional/ex_cmds/print_commands_spec.lua
parenta396874da0efaeb7def5e26afab9ae1c980510a0 (diff)
downloadrneovim-f50e03f2e35cf4bee8cedb2c95bf9619f3b57bc2.tar.gz
rneovim-f50e03f2e35cf4bee8cedb2c95bf9619f3b57bc2.tar.bz2
rneovim-f50e03f2e35cf4bee8cedb2c95bf9619f3b57bc2.zip
ex_cmds.c: Fix bug in ex_z (#6557)
vim-patch:8.0.0571
Diffstat (limited to 'test/functional/ex_cmds/print_commands_spec.lua')
-rw-r--r--test/functional/ex_cmds/print_commands_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/print_commands_spec.lua b/test/functional/ex_cmds/print_commands_spec.lua
new file mode 100644
index 0000000000..98c0f74635
--- /dev/null
+++ b/test/functional/ex_cmds/print_commands_spec.lua
@@ -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)