mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
fix(quickfix): use correct lnume when appending (#34611)
Problem: ml_get error when updating quickfix buffer with nvim_buf_attach Solution: use correct lnume parameter in changed_lines for append mode Fix #34610
This commit is contained in:
@@ -825,6 +825,20 @@ describe('API: buffer events:', function()
|
||||
},
|
||||
}, next_msg())
|
||||
end)
|
||||
|
||||
it('when updating quickfix list #34610', function()
|
||||
command('copen')
|
||||
|
||||
local b = api.nvim_get_current_buf()
|
||||
ok(api.nvim_buf_attach(b, true, {}))
|
||||
expectn('nvim_buf_lines_event', { b, 2, 0, -1, { '' }, false })
|
||||
|
||||
command("cexpr ['Xa', 'Xb']")
|
||||
expectn('nvim_buf_lines_event', { b, 3, 0, 1, { '|| Xa', '|| Xb' }, false })
|
||||
|
||||
command("caddexpr ['Xc']")
|
||||
expectn('nvim_buf_lines_event', { b, 4, 2, 2, { '|| Xc' }, false })
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('API: buffer events:', function()
|
||||
|
Reference in New Issue
Block a user