comparison src/testdir/test_quickfix.vim @ 26364:baf0d27eb024 v8.2.3713

patch 8.2.3713: MS-Windows: no error if vimgrep pattern is not matching Commit: https://github.com/vim/vim/commit/0b226f60be5c30c32fb01fc0b6dc11286e7e2313 Author: Christian Brabandt <cb@256bit.org> Date: Wed Dec 1 10:54:24 2021 +0000 patch 8.2.3713: MS-Windows: no error if vimgrep pattern is not matching Problem: MS-Windows: No error message if vimgrep pattern is not matching. Solution: Give an error message. (Christian Brabandt, closes https://github.com/vim/vim/issues/9245, closes #8762)
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Dec 2021 12:00:05 +0100
parents 485c7c4afeb7
children 824fe105f5b9
comparison
equal deleted inserted replaced
26363:44a6acdbdbfe 26364:baf0d27eb024
5619 wincmd p 5619 wincmd p
5620 call assert_equal("loclist", win_gettype(wid)) 5620 call assert_equal("loclist", win_gettype(wid))
5621 lclose 5621 lclose
5622 endfunc 5622 endfunc
5623 5623
5624 fun Test_vimgrep_nomatch()
5625 call XexprTests('c')
5626 call g:Xsetlist([{'lnum':10,'text':'Line1'}])
5627 copen
5628 if has("win32")
5629 call assert_fails('vimgrep foo *.zzz', 'E479:')
5630 let expected = [{'lnum': 10, 'bufnr': 0, 'end_lnum': 0, 'pattern': '', 'valid': 0, 'vcol': 0, 'nr': 0, 'module': '', 'type': '', 'end_col': 0, 'col': 0, 'text': 'Line1'}]
5631 else
5632 call assert_fails('vimgrep foo *.zzz', 'E480:')
5633 let expected = []
5634 endif
5635 call assert_equal(expected, getqflist())
5636 cclose
5637 endfunc
5638
5624 " vim: shiftwidth=2 sts=2 expandtab 5639 " vim: shiftwidth=2 sts=2 expandtab