diff options
| author | Riccardo Mazzarini <me@noib3.dev> | 2025-11-21 06:40:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-20 21:40:08 -0800 |
| commit | 7da4d6abe2491b165e8cb94d4d774d8be7b23da1 (patch) | |
| tree | bd032d81f2bfe193dcd90b6fcdcc07e840f2e732 /test/functional/vimscript/executable_spec.lua | |
| parent | 7be031f397da2555e950a4acf753b1219ef7dfe1 (diff) | |
| download | rneovim-7da4d6abe2491b165e8cb94d4d774d8be7b23da1.tar.gz rneovim-7da4d6abe2491b165e8cb94d4d774d8be7b23da1.tar.bz2 rneovim-7da4d6abe2491b165e8cb94d4d774d8be7b23da1.zip | |
fix(api): on_bytes gets stale data on :substitute #36487
Problem: `extmark_splice()` was being called before `ml_replace()`,
which caused the on_bytes callback to be invoked with the old buffer
text instead of the new text.
Solution: store metadata for each match in a growing array, call
`ml_replace()` once to update the buffer, then call `extmark_splice()`
once per match.
Closes https://github.com/neovim/neovim/issues/36370.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions