aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/codelens.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-05-20 21:45:02 +0800
committerGitHub <noreply@github.com>2024-05-20 21:45:02 +0800
commit91892f56b6cbf21c24474e8e5f0199f02a0602b1 (patch)
tree611accbd60d3350b5debebc02cda024c2e0e07a3 /runtime/lua/vim/lsp/codelens.lua
parent36a9da65472f1607568c9be9b91c06357e39fce4 (diff)
downloadrneovim-91892f56b6cbf21c24474e8e5f0199f02a0602b1.tar.gz
rneovim-91892f56b6cbf21c24474e8e5f0199f02a0602b1.tar.bz2
rneovim-91892f56b6cbf21c24474e8e5f0199f02a0602b1.zip
vim-patch:9.1.0399: block_editing errors out when using del (#28867)
Problem: block_editing errors out when using del (@Jamarley) Solution: Change ins_len from size_t to int and properly check that it doesn't become negative There is a check in os.c that verifies that `ins_len` does not become negative: ``` if (pre_textlen >= 0 && (ins_len = len - pre_textlen - offset) > 0) ``` However this only works, if ins_len can actually become negative and unfortunately, ins_len has been declared as `size_t` so instead of becoming negative it will wrap around and be very large. So let's define it as integer, after which the condition above properly catches this condition. fixes: vim/vim#14734 closes: vim/vim#14735 https://github.com/vim/vim/commit/d5c8c0920e1eee9ff7a9fa5168d8e85c01670630 Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/lua/vim/lsp/codelens.lua')
0 files changed, 0 insertions, 0 deletions