Mercurial > vim
diff src/testdir/test_quickfix.vim @ 13764:7bba231fdddc v8.0.1754
patch 8.0.1754: ex_helpgrep() is too long
commit https://github.com/vim/vim/commit/2225ebb48644f3924311b8df02a1319ab7675d42
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 24 15:48:11 2018 +0200
patch 8.0.1754: ex_helpgrep() is too long
Problem: ex_helpgrep() is too long.
Solution: Refactor the function. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/2766)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Apr 2018 16:00:08 +0200 |
parents | aef8ba129a4f |
children | 31bb8e1f7625 |
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -2302,6 +2302,12 @@ func XvimgrepTests(cchar) call assert_equal('Xtestfile2', bufname('')) call assert_equal('Editor:Emacs EmAcS', l[0].text) + " Test for unloading a buffer after vimgrep searched the buffer + %bwipe + Xvimgrep /Editor/j Xtestfile* + call assert_equal(0, getbufinfo('Xtestfile1')[0].loaded) + call assert_equal([], getbufinfo('Xtestfile2')) + call delete('Xtestfile1') call delete('Xtestfile2') endfunc