aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-02 23:34:07 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-02 23:35:02 -0400
commit6deddb26def6aaf4b18d1c31c319fe9db6dfb399 (patch)
tree9aea3ca5e80de15156d835580b531b12de152951 /src
parentd7432145ff39bb3827b93009b80be3956aedcc1e (diff)
downloadrneovim-6deddb26def6aaf4b18d1c31c319fe9db6dfb399.tar.gz
rneovim-6deddb26def6aaf4b18d1c31c319fe9db6dfb399.tar.bz2
rneovim-6deddb26def6aaf4b18d1c31c319fe9db6dfb399.zip
vim-patch:8.1.0336: mkview test still fails on CI
Problem: mkview test still fails on CI. Solution: Ignore curswant, don't see another solution. https://github.com/vim/vim/commit/dd5d18eadffadc723ff7d3e208a2973d267a6dde
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_mksession.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/testdir/test_mksession.vim b/src/nvim/testdir/test_mksession.vim
index 8332f6bb41..e30d5f7a40 100644
--- a/src/nvim/testdir/test_mksession.vim
+++ b/src/nvim/testdir/test_mksession.vim
@@ -161,7 +161,7 @@ func Test_mkview_file()
help :mkview
set number
norm! V}zf0
- let pos = getcurpos()
+ let pos = getpos('.')
let linefoldclosed1 = foldclosed('.')
mkview! Xview
set nonumber
@@ -173,7 +173,7 @@ func Test_mkview_file()
source Xview
call assert_equal(1, &number)
call assert_match('\*:mkview\*$', getline('.'))
- call assert_equal(pos, getcurpos())
+ call assert_equal(pos, getpos('.'))
call assert_equal(linefoldclosed1, foldclosed('.'))
" Creating a view again with the same file name should fail (file
@@ -196,7 +196,7 @@ func Test_mkview_loadview_with_viewdir()
help :mkview
set number
norm! V}zf
- let pos = getcurpos()
+ let pos = getpos('.')
let linefoldclosed1 = foldclosed('.')
mkview 1
set nonumber
@@ -213,7 +213,7 @@ func Test_mkview_loadview_with_viewdir()
\ glob('Xviewdir/*'))
call assert_equal(1, &number)
call assert_match('\*:mkview\*$', getline('.'))
- call assert_equal(pos, getcurpos())
+ call assert_equal(pos, getpos('.'))
call assert_equal(linefoldclosed1, foldclosed('.'))
call delete('Xviewdir', 'rf')