diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-12 13:28:17 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-12 16:23:32 +0800 |
| commit | 01afd43bc90408b43db906845245a4959c8ee3a0 (patch) | |
| tree | 2386f072c52f5130d6ed83e33919dcd192f07b75 /src/nvim/testdir/test_arglist.vim | |
| parent | 0f1b17788eb584f41d59c12c968f5e1886655334 (diff) | |
| download | rneovim-01afd43bc90408b43db906845245a4959c8ee3a0.tar.gz rneovim-01afd43bc90408b43db906845245a4959c8ee3a0.tar.bz2 rneovim-01afd43bc90408b43db906845245a4959c8ee3a0.zip | |
vim-patch:8.2.0275: some Ex code not covered by tests
Problem: Some Ex code not covered by tests.
Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5659)
https://github.com/vim/vim/commit/406cd90f1963ca60813db91c413eef4b1b78ee44
Diffstat (limited to 'src/nvim/testdir/test_arglist.vim')
| -rw-r--r-- | src/nvim/testdir/test_arglist.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_arglist.vim b/src/nvim/testdir/test_arglist.vim index 5caceeb958..b8a1fe4ebd 100644 --- a/src/nvim/testdir/test_arglist.vim +++ b/src/nvim/testdir/test_arglist.vim @@ -524,6 +524,20 @@ func Test_quit_with_arglist() call term_sendkeys(buf, ":quit\n") call WaitForAssert({-> assert_match('^E173:', term_getline(buf, 6))}) call StopVimInTerminal(buf) + + " Try :confirm quit with unedited files in arglist + let buf = RunVimInTerminal('', {'rows': 6}) + call term_sendkeys(buf, ":set nomore\n") + call term_sendkeys(buf, ":args a b c\n") + call term_sendkeys(buf, ":confirm quit\n") + call WaitForAssert({-> assert_match('^\[Y\]es, (N)o: *$', + \ term_getline(buf, 6))}) + call term_sendkeys(buf, "N") + call term_sendkeys(buf, ":confirm quit\n") + call WaitForAssert({-> assert_match('^\[Y\]es, (N)o: *$', + \ term_getline(buf, 6))}) + call term_sendkeys(buf, "Y") + call StopVimInTerminal(buf) endfunc " vim: shiftwidth=2 sts=2 expandtab |