aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/setpos_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-10 19:12:56 +0300
committerZyX <kp-pav@yandex.ru>2017-04-10 19:12:56 +0300
commit22fb9d8d25f5354bb878b953ba49b439961c8476 (patch)
treed3c21e80d09f7b1cf1a7c525643c2e20fb5a925e /test/functional/eval/setpos_spec.lua
parentacc52a953b99f78435c34337b8ca9b6716a057a1 (diff)
parent9aface8c4d1edd25d4fed3e099e3c2c02b0a282a (diff)
downloadrneovim-22fb9d8d25f5354bb878b953ba49b439961c8476.tar.gz
rneovim-22fb9d8d25f5354bb878b953ba49b439961c8476.tar.bz2
rneovim-22fb9d8d25f5354bb878b953ba49b439961c8476.zip
Merge branch 'master' into 1476-changes
Diffstat (limited to 'test/functional/eval/setpos_spec.lua')
-rw-r--r--test/functional/eval/setpos_spec.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/functional/eval/setpos_spec.lua b/test/functional/eval/setpos_spec.lua
index 2e27cd8ac0..6a8b3a8732 100644
--- a/test/functional/eval/setpos_spec.lua
+++ b/test/functional/eval/setpos_spec.lua
@@ -3,7 +3,7 @@ local setpos = helpers.funcs.setpos
local getpos = helpers.funcs.getpos
local insert = helpers.insert
local clear = helpers.clear
-local execute = helpers.execute
+local command = helpers.command
local eval = helpers.eval
local eq = helpers.eq
local exc_exec = helpers.exc_exec
@@ -16,7 +16,7 @@ describe('setpos() function', function()
First line of text
Second line of text
Third line of text]])
- execute('new')
+ command('new')
insert([[
Line of text 1
Line of text 2
@@ -34,7 +34,8 @@ describe('setpos() function', function()
it('can set lowercase marks in the current buffer', function()
setpos("'d", {0, 2, 1, 0})
eq(getpos("'d"), {0, 2, 1, 0})
- execute('undo', 'call setpos("\'d", [2, 3, 1, 0])')
+ command('undo')
+ command('call setpos("\'d", [2, 3, 1, 0])')
eq(getpos("'d"), {0, 3, 1, 0})
end)
it('can set lowercase marks in other buffers', function()
@@ -42,7 +43,7 @@ describe('setpos() function', function()
eq(0, retval)
setpos("'d", {1, 2, 1, 0})
eq(getpos("'d"), {0, 0, 0, 0})
- execute('wincmd w')
+ command('wincmd w')
eq(eval('bufnr("%")'), 1)
eq(getpos("'d"), {0, 2, 1, 0})
end)