aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-09-13 01:33:53 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-09-13 08:25:20 -0400
commit476c50903a38a2ab85546c6f061117950d6e79fc (patch)
treeac1657af6803e98c9fb537fef13ad5827eb10b37 /src/nvim/testdir
parentcc049a5612a08b810f5897f7b108e0cdaba445b7 (diff)
downloadrneovim-476c50903a38a2ab85546c6f061117950d6e79fc.tar.gz
rneovim-476c50903a38a2ab85546c6f061117950d6e79fc.tar.bz2
rneovim-476c50903a38a2ab85546c6f061117950d6e79fc.zip
vim-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) https://github.com/vim/vim/commit/1c29943416207e21abbc790eaf563b36789170c2
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_quickfix.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim
index 926103b69f..eeec5bd2c3 100644
--- a/src/nvim/testdir/test_quickfix.vim
+++ b/src/nvim/testdir/test_quickfix.vim
@@ -2450,6 +2450,22 @@ func Test_vimgrep()
call XvimgrepTests('l')
endfunc
+" Test for incsearch highlighting of the :vimgrep pattern
+" This test used to cause "E315: ml_get: invalid lnum" errors.
+func Test_vimgrep_incsearch()
+ throw 'skipped: Nvim does not support test_override()'
+ enew
+ set incsearch
+ call test_override("char_avail", 1)
+
+ call feedkeys(":2vimgrep assert test_quickfix.vim test_cdo.vim\<CR>", "ntx")
+ let l = getqflist()
+ call assert_equal(2, len(l))
+
+ call test_override("ALL", 0)
+ set noincsearch
+endfunc
+
func XfreeTests(cchar)
call s:setup_commands(a:cchar)