robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
aa1d8a2702
master
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 () 8before_each ( clear ) 9 10it ( 'does not hang on large input #2983' , function () 11if eval ( "executable('grep')" ) == 0 then 12pending ( 'missing "grep" command' ) 13return 14end 15 16n . command ( 'set grepprg=grep' ) 17n . feed ( ':grep N test/functional/fixtures/bigfile.txt<cr>' ) 18n . feed ( '<cr>' ) -- Press ENTER 19ok ( eval ( 'len(getqflist())' ) > 9000 ) -- IT'S OVER 9000!!1 20end ) 21end )