diff options
author | Blaž Hrastnik <blaz@mxxn.io> | 2020-05-04 10:30:59 +0900 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-01-01 19:51:37 +0100 |
commit | 29ad2ebc1688176a1c7acaa81103dac289de0ad1 (patch) | |
tree | 442468e1a5b5134f3bed3cda61eeaa16a2963dfc /runtime/lua/vim/lsp/protocol.lua | |
parent | 9be19b770d7802e62ab1a084996ac2192b71fd70 (diff) | |
download | rneovim-29ad2ebc1688176a1c7acaa81103dac289de0ad1.tar.gz rneovim-29ad2ebc1688176a1c7acaa81103dac289de0ad1.tar.bz2 rneovim-29ad2ebc1688176a1c7acaa81103dac289de0ad1.zip |
api: set_text: fix validation and some issues
fix double free because intermediary lines weren't xmemdup'd.
NL-for-NUL dance.
Normalize row indices and perform more validation.
Adjust the cursor position if it's on the right side of the replacement.
Tests and documentation.
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
0 files changed, 0 insertions, 0 deletions