See http://demo.searchcodeserver.com/file/2a88f49497fd38605f2ddf49e400a36b5da3bd40/ripgrep/src/search_buffer.rs Should read deeper into the file to avoid cutting it off.