comparison src/testdir/test_quickfix.vim @ 14976:676db1b7fc35 v8.1.0499

patch 8.1.0499: :2vimgrep causes an ml_get error commit https://github.com/vim/vim/commit/1c29943416207e21abbc790eaf563b36789170c2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 28 14:36:09 2018 +0100 patch 8.1.0499: :2vimgrep causes an ml_get error Problem: :2vimgrep causes an ml_get error Solution: Pass tomatch pointer instead of value. (Yegappan Lakshmanan)
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Oct 2018 14:45:05 +0100
parents 940def6df43f
children 3a3c9b638187
comparison
equal deleted inserted replaced
14975:0b92912925c7 14976:676db1b7fc35
2362 func Test_vimgrep() 2362 func Test_vimgrep()
2363 call XvimgrepTests('c') 2363 call XvimgrepTests('c')
2364 call XvimgrepTests('l') 2364 call XvimgrepTests('l')
2365 endfunc 2365 endfunc
2366 2366
2367 " Test for incsearch highlighting of the :vimgrep pattern
2368 " This test used to cause "E315: ml_get: invalid lnum" errors.
2369 func Test_vimgrep_incsearch()
2370 enew
2371 set incsearch
2372 call test_override("char_avail", 1)
2373
2374 call feedkeys(":2vimgrep assert test_quickfix.vim test_cdo.vim\<CR>", "ntx")
2375 let l = getqflist()
2376 call assert_equal(2, len(l))
2377
2378 call test_override("ALL", 0)
2379 set noincsearch
2380 endfunc
2381
2367 func XfreeTests(cchar) 2382 func XfreeTests(cchar)
2368 call s:setup_commands(a:cchar) 2383 call s:setup_commands(a:cchar)
2369 2384
2370 enew | only 2385 enew | only
2371 2386