aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/buffer_updates_spec.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2025-06-24 07:48:55 +0800
committerGitHub <noreply@github.com>2025-06-23 23:48:55 +0000
commit69c379dc4411c254fa4536572bbef8ecd0923e3c (patch)
treef388dfc151810b514d59de3fdd5a6cd8412cf81c /test/functional/lua/buffer_updates_spec.lua
parent92883b918cc50e91669f4fc6fe4d48c18d795523 (diff)
downloadrneovim-69c379dc4411c254fa4536572bbef8ecd0923e3c.tar.gz
rneovim-69c379dc4411c254fa4536572bbef8ecd0923e3c.tar.bz2
rneovim-69c379dc4411c254fa4536572bbef8ecd0923e3c.zip
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
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-rw-r--r--test/functional/lua/buffer_updates_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua
index 93829bc5d4..1d568e7d05 100644
--- a/test/functional/lua/buffer_updates_spec.lua
+++ b/test/functional/lua/buffer_updates_spec.lua
@@ -439,11 +439,11 @@ describe('lua buffer event callbacks: on_lines', function()
command('caddexpr "bar"')
eq({ 'bytes', 2, 3, 0, 6, 6, 0, 0, 0, 1, 6, 6 }, api.nvim_get_var('qf_on_bytes'))
- eq({ 'lines', 2, 4, 1, 2, 4, 0 }, api.nvim_get_var('qf_on_lines'))
+ eq({ 'lines', 2, 4, 1, 1, 2, 0 }, api.nvim_get_var('qf_on_lines'))
command('caddexpr ["line1", "line2", "line3"]')
eq({ 'bytes', 2, 4, 1, 6, 13, 0, 0, 0, 3, 8, 26 }, api.nvim_get_var('qf_on_bytes'))
- eq({ 'lines', 2, 5, 2, 5, 9, 0 }, api.nvim_get_var('qf_on_lines'))
+ eq({ 'lines', 2, 5, 2, 2, 5, 0 }, api.nvim_get_var('qf_on_lines'))
command('cexpr "replace"')
eq({ 'bytes', 2, 5, 0, 0, 0, 4, 0, 40, 0, 10, 10 }, api.nvim_get_var('qf_on_bytes'))