aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorBlaž Hrastnik <blaz@mxxn.io>2020-05-04 10:30:59 +0900
committerBjörn Linse <bjorn.linse@gmail.com>2021-01-01 19:51:37 +0100
commit29ad2ebc1688176a1c7acaa81103dac289de0ad1 (patch)
tree442468e1a5b5134f3bed3cda61eeaa16a2963dfc /runtime/lua/vim/lsp/protocol.lua
parent9be19b770d7802e62ab1a084996ac2192b71fd70 (diff)
downloadrneovim-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