aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorDamián Silvani <munshkr@gmail.com>2014-07-07 08:24:12 -0300
committerDamián Silvani <munshkr@gmail.com>2014-09-16 22:43:40 -0300
commit27f423e734060e8bf00e62c2f95512c0b1511c80 (patch)
treeaa3c848bf92d68aac4e2cbcb0d6190bacb296bec /src/nvim/testdir
parent8d6540f8764c4a691e22890258599d74b43b52e6 (diff)
downloadrneovim-27f423e734060e8bf00e62c2f95512c0b1511c80.tar.gz
rneovim-27f423e734060e8bf00e62c2f95512c0b1511c80.tar.bz2
rneovim-27f423e734060e8bf00e62c2f95512c0b1511c80.zip
vim-patch:7.4.310
Problem: getpos()/setpos() don't include curswant. Solution: Add a fifth number when getting/setting the cursor. https://code.google.com/p/vim/source/detail?r=ccac0aa34eeaf46dad4b831461a532fc3fe71096
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_eval.in21
-rw-r--r--src/nvim/testdir/test_eval.ok2
2 files changed, 17 insertions, 6 deletions
diff --git a/src/nvim/testdir/test_eval.in b/src/nvim/testdir/test_eval.in
index c34f5cb50e..3e5ca8e872 100644
--- a/src/nvim/testdir/test_eval.in
+++ b/src/nvim/testdir/test_eval.in
@@ -1,7 +1,7 @@
STARTTEST
-
-:e test.out
-:%d
+:so small.vim
+:set encoding=latin1
+:set noswapfile
:" function name not starting with a capital
:try
@@ -49,9 +49,18 @@ STARTTEST
: $put =v:exception
:endtry
-:1d
-:w
-:qa!
+:$put ='{{{1 setpos/getpos'
+/^012345678
+6l:let sp = getpos('.')
+0:call setpos('.', sp)
+jyl:$put
+:/^start:/+1,$wq! test.out
+:" vim: et ts=4 isk-=\: fmr=???,???
+:call getchar()
ENDTEST
+012345678
+012345678
+
+start:
diff --git a/src/nvim/testdir/test_eval.ok b/src/nvim/testdir/test_eval.ok
index 162e1b12fd..7e847c1a57 100644
--- a/src/nvim/testdir/test_eval.ok
+++ b/src/nvim/testdir/test_eval.ok
@@ -9,3 +9,5 @@ func s:Testje exists: 1
Bar exists: 1
func Bar exists: 1
Vim(call):E116: Invalid arguments for function append
+{{{1 setpos/getpos
+6