feat(highlight): warn when hunks exceed max_lines (#184)

This commit is contained in:
Barrett Ruth 2026-03-10 17:36:36 -04:00 committed by GitHub
parent 600d3757f2
commit de04381298
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 99 additions and 22 deletions

View file

@ -135,8 +135,8 @@ describe('highlight', function()
local lines = { '@@ -1,100 +1,101 @@' }
local hunk_lines = {}
for i = 1, 600 do
table.insert(lines, ' line ' .. i)
table.insert(hunk_lines, ' line ' .. i)
table.insert(lines, '+line ' .. i)
table.insert(hunk_lines, '+line ' .. i)
end
local bufnr = create_buffer(lines)