aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_ftplugin/lua.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-09-11 01:01:16 -0400
committerGitHub <noreply@github.com>2026-09-11 01:01:16 -0400
commit28ff47b8a4142b7596639d1b717a88304be91a88 (patch)
tree1d6ee899f7dc95d7e6818fa8dcb8767b7b8acb62 /runtime/lua/vim/_ftplugin/lua.lua
parentce5dc72a2322b881a5e73f55fadcd8d6c6020d5a (diff)
downloadrneovim-28ff47b8a4142b7596639d1b717a88304be91a88.tar.gz
rneovim-28ff47b8a4142b7596639d1b717a88304be91a88.tar.bz2
rneovim-28ff47b8a4142b7596639d1b717a88304be91a88.zip
fix(ui2): dialog messages offset by the pager line count #41839
Problem: expand_msg() derives its start row from the pager buffer even when the target is the cmd or dialog buffer, so the copied lines are appended instead of replacing, and the copied extmarks are placed at pager rows in a smaller buffer: "Invalid 'end_col': out of range", thrown inside a UI event handler. Solution: Offset only when appending to a visible pager, and read the line count after msg_clear(), whose autocmds may write to the pager. Copy marks with `strict = false`, since the rows and columns are recomputed for a different buffer and should clamp rather than raise. AI-assisted
Diffstat (limited to 'runtime/lua/vim/_ftplugin/lua.lua')
0 files changed, 0 insertions, 0 deletions