0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.2.3885: arglist test fails

Problem:    Arglist test fails.
Solution:   Adjust for locking the arglist for ":all".
This commit is contained in:
Bram Moolenaar
2021-12-24 18:58:46 +00:00
parent 6f98371532
commit 679140c56b
2 changed files with 8 additions and 10 deletions

View File

@@ -484,18 +484,14 @@ func Test_arglist_autocmd()
new new
" redefine arglist; go to Xxx1 " redefine arglist; go to Xxx1
next! Xxx1 Xxx2 Xxx3 next! Xxx1 Xxx2 Xxx3
" open window for all args; Reading Xxx2 will change the arglist and the " open window for all args; Reading Xxx2 will try to change the arglist and
" third window will get Xxx1: " that will fail
" win 1: Xxx1 call assert_fails("all", "E1156:")
" win 2: Xxx2
" win 3: Xxx1
all
call assert_equal('test file Xxx1', getline(1)) call assert_equal('test file Xxx1', getline(1))
wincmd w wincmd w
wincmd w
call assert_equal('test file Xxx1', getline(1))
rewind
call assert_equal('test file Xxx2', getline(1)) call assert_equal('test file Xxx2', getline(1))
wincmd w
call assert_equal('test file Xxx3', getline(1))
autocmd! BufReadPost Xxx2 autocmd! BufReadPost Xxx2
enew! | only enew! | only
@@ -586,7 +582,7 @@ endfunc
func Test_clear_arglist_in_all() func Test_clear_arglist_in_all()
n 0 00 000 0000 00000 000000 n 0 00 000 0000 00000 000000
au! * 0 n 0 au! * 0 n 0
all call assert_fails("all", "E1156")
au! * au! *
endfunc endfunc

View File

@@ -749,6 +749,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
3885,
/**/ /**/
3884, 3884,
/**/ /**/