diff options
author | Au. <acehinnnqru@gmail.com> | 2025-03-24 07:10:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-23 16:10:42 -0700 |
commit | 9516997eb0ad20146ddddb48ba48c905d512998c (patch) | |
tree | b16e07df4e8eb8b2e2fd2b847592afab272d6621 /runtime/lua/vim/lsp/completion.lua | |
parent | 2eddd6f7c07980e6e1734a490c3f3d7a598436e6 (diff) | |
download | rneovim-9516997eb0ad20146ddddb48ba48c905d512998c.tar.gz rneovim-9516997eb0ad20146ddddb48ba48c905d512998c.tar.bz2 rneovim-9516997eb0ad20146ddddb48ba48c905d512998c.zip |
fix(paste): wrong '[ mark after pasting a big string (streamed chunks) #33025
Problem
Pasting a big string ("streamed paste" with multiple chunks) sets the '[
mark to the edit from the last chunk, instead of the start of the paste.
Solution:
Set the '[ mark where the paste started, not where the last chunk was
inserted.
Note: `startpos == nil` is not equal to `phase == 1` because there may
be some empty chunks pasted which won't arrive here (returned at code
before).
Diffstat (limited to 'runtime/lua/vim/lsp/completion.lua')
0 files changed, 0 insertions, 0 deletions