robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

robinmerge: 1dc9728daa1d8a2702

master
632 B21 linesraw
1local t = require('test.testutil')
2local n = require('test.functional.testnvim')()
3
4local describe, it, before_each, pending = t.describe, t.it, t.before_each, t.pending
5local clear, ok, eval = n.clear, t.ok, n.eval
6
7describe(':grep', function()
8  before_each(clear)
9
10  it('does not hang on large input #2983', function()
11    if eval("executable('grep')") == 0 then
12      pending('missing "grep" command')
13      return
14    end
15
16    n.command('set grepprg=grep')
17    n.feed(':grep N test/functional/fixtures/bigfile.txt<cr>')
18    n.feed('<cr>') -- Press ENTER
19    ok(eval('len(getqflist())') > 9000) -- IT'S OVER 9000!!1
20  end)
21end)