diff options
author | Christian Clason <christian.clason@uni-due.de> | 2020-05-08 16:04:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 10:04:41 -0400 |
commit | 281e44f7bb24866d4a580d32aaeab8c8033f1fb0 (patch) | |
tree | a2fcc1ce784fdbe126ce57a24540a9cbef11f492 /runtime/lua/vim/lsp/protocol.lua | |
parent | 9a67b030d9a054648296b45b615684dee768582d (diff) | |
download | rneovim-281e44f7bb24866d4a580d32aaeab8c8033f1fb0.tar.gz rneovim-281e44f7bb24866d4a580d32aaeab8c8033f1fb0.tar.bz2 rneovim-281e44f7bb24866d4a580d32aaeab8c8033f1fb0.zip |
lsp: Make apply_text_edits non-ASCII safe (#12223)
* Make apply_text_edits non-ASCII safe
Use `vim.str_byteindex` to correct starting and ending positions for text edits if the line contains non-ASCII characters.
Fixes #12221
* text_edit may be applied to other buffers
* make sure the buffer is loaded
* add comments
* add test for non-ASCII edits
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
0 files changed, 0 insertions, 0 deletions