diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-01-20 13:29:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-01-20 13:29:49 +0100 |
commit | e823183254e79af4d384abd99d5bde9b013c4ec5 (patch) | |
tree | 18548d476f790cc99d674e39934019da75db515d /src/testdir/test_command_count.in | |
parent | ff8a75dab738a2d1e81202b5dd1c03fc45d714f2 (diff) | |
download | vim-e823183254e79af4d384abd99d5bde9b013c4ec5.zip |
updated for version 7.4.585
Problem: Range for :bdelete does not work. (Ronald Schild)
Solution: Also allow unloaded buffers.
Diffstat (limited to 'src/testdir/test_command_count.in')
-rw-r--r-- | src/testdir/test_command_count.in | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/testdir/test_command_count.in b/src/testdir/test_command_count.in index fd528c685..c87b4c909 100644 --- a/src/testdir/test_command_count.in +++ b/src/testdir/test_command_count.in @@ -92,11 +92,37 @@ STARTTEST :call append(0, g:lines) :unlet g:lines :w|bd -:se hidden :b1 ENDTEST STARTTEST +:let g:lines = [] +:func BufStatus() +: call add(g:lines, 'aaa: ' . buflisted(g:buf_aaa) . ' bbb: ' . buflisted(g:buf_bbb) . ' ccc: ' . buflisted(g:buf_ccc)) +:endfunc +:se nohidden +:e aaa +:let buf_aaa = bufnr('%') +:e bbb +:let buf_bbb = bufnr('%') +:e ccc +:let buf_ccc = bufnr('%') +:b1 +:call BufStatus() +:exe buf_bbb . "," . buf_ccc . "bdelete" +:call BufStatus() +:exe buf_aaa . "bdelete" +:call BufStatus() +:e! test.out +:call append('$', g:lines) +:unlet g:lines +:delfunc BufStatus +:w|bd +:b1 +ENDTEST + +STARTTEST +:se hidden :only! :let g:lines = [] :%argd |