Mercurial > vim
comparison src/testdir/test_arglist.vim @ 26713:3f8189feffb7 v8.2.3885
patch 8.2.3885: arglist test fails
Commit: https://github.com/vim/vim/commit/679140c56bbabf12a199d94f584b1b9dfc9809fd
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 24 18:58:46 2021 +0000
patch 8.2.3885: arglist test fails
Problem: Arglist test fails.
Solution: Adjust for locking the arglist for ":all".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 Dec 2021 20:00:03 +0100 |
parents | 5860bd619d30 |
children | af919f98c7e1 |
comparison
equal
deleted
inserted
replaced
26712:e46c0f3d87a5 | 26713:3f8189feffb7 |
---|---|
482 call writefile(['test file Xxx3'], 'Xxx3') | 482 call writefile(['test file Xxx3'], 'Xxx3') |
483 | 483 |
484 new | 484 new |
485 " redefine arglist; go to Xxx1 | 485 " redefine arglist; go to Xxx1 |
486 next! Xxx1 Xxx2 Xxx3 | 486 next! Xxx1 Xxx2 Xxx3 |
487 " open window for all args; Reading Xxx2 will change the arglist and the | 487 " open window for all args; Reading Xxx2 will try to change the arglist and |
488 " third window will get Xxx1: | 488 " that will fail |
489 " win 1: Xxx1 | 489 call assert_fails("all", "E1156:") |
490 " win 2: Xxx2 | |
491 " win 3: Xxx1 | |
492 all | |
493 call assert_equal('test file Xxx1', getline(1)) | 490 call assert_equal('test file Xxx1', getline(1)) |
494 wincmd w | 491 wincmd w |
492 call assert_equal('test file Xxx2', getline(1)) | |
495 wincmd w | 493 wincmd w |
496 call assert_equal('test file Xxx1', getline(1)) | 494 call assert_equal('test file Xxx3', getline(1)) |
497 rewind | |
498 call assert_equal('test file Xxx2', getline(1)) | |
499 | 495 |
500 autocmd! BufReadPost Xxx2 | 496 autocmd! BufReadPost Xxx2 |
501 enew! | only | 497 enew! | only |
502 call delete('Xxx1') | 498 call delete('Xxx1') |
503 call delete('Xxx2') | 499 call delete('Xxx2') |
584 endfunc | 580 endfunc |
585 | 581 |
586 func Test_clear_arglist_in_all() | 582 func Test_clear_arglist_in_all() |
587 n 0 00 000 0000 00000 000000 | 583 n 0 00 000 0000 00000 000000 |
588 au! * 0 n 0 | 584 au! * 0 n 0 |
589 all | 585 call assert_fails("all", "E1156") |
590 au! * | 586 au! * |
591 endfunc | 587 endfunc |
592 | 588 |
593 " vim: shiftwidth=2 sts=2 expandtab | 589 " vim: shiftwidth=2 sts=2 expandtab |