aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-05 21:29:56 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-05 22:40:28 +0800
commit824a31cd0d55752b01a9bdd1f38f756e079e25e8 (patch)
treedebe04a083a2639308871163d1df7d19c8081f57 /src
parentdcdb7dca6aa7e335b2e8f339d3bb76da1c9d3b6e (diff)
downloadrneovim-824a31cd0d55752b01a9bdd1f38f756e079e25e8.tar.gz
rneovim-824a31cd0d55752b01a9bdd1f38f756e079e25e8.tar.bz2
rneovim-824a31cd0d55752b01a9bdd1f38f756e079e25e8.zip
vim-patch:8.2.3885: arglist test fails
Problem: Arglist test fails. Solution: Adjust for locking the arglist for ":all". https://github.com/vim/vim/commit/679140c56bbabf12a199d94f584b1b9dfc9809fd
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_arglist.vim16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/nvim/testdir/test_arglist.vim b/src/nvim/testdir/test_arglist.vim
index b1edb66a02..1fa31b6ecc 100644
--- a/src/nvim/testdir/test_arglist.vim
+++ b/src/nvim/testdir/test_arglist.vim
@@ -509,18 +509,14 @@ func Test_arglist_autocmd()
new
" redefine arglist; go to Xxx1
next! Xxx1 Xxx2 Xxx3
- " open window for all args; Reading Xxx2 will change the arglist and the
- " third window will get Xxx1:
- " win 1: Xxx1
- " win 2: Xxx2
- " win 3: Xxx1
- all
+ " open window for all args; Reading Xxx2 will try to change the arglist and
+ " that will fail
+ call assert_fails("all", "E1156:")
call assert_equal('test file Xxx1', getline(1))
wincmd w
- wincmd w
- call assert_equal('test file Xxx1', getline(1))
- rewind
call assert_equal('test file Xxx2', getline(1))
+ wincmd w
+ call assert_equal('test file Xxx3', getline(1))
autocmd! BufReadPost Xxx2
enew! | only
@@ -610,7 +606,7 @@ endfunc
func Test_clear_arglist_in_all()
n 0 00 000 0000 00000 000000
au! * 0 n 0
- all
+ call assert_fails("all", "E1156")
au! *
endfunc