diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-04 07:37:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-03 23:37:14 +0000 |
commit | 47cfe901d739149f88b6f917fc1f310727700b40 (patch) | |
tree | e667b0c753bc286b746ada0d8a5cddde459d106c /runtime/lua/vim/_comment.lua | |
parent | 8ce504820af04194a41acbe1f4c61cf12bd5feb5 (diff) | |
download | rneovim-47cfe901d739149f88b6f917fc1f310727700b40.tar.gz rneovim-47cfe901d739149f88b6f917fc1f310727700b40.tar.bz2 rneovim-47cfe901d739149f88b6f917fc1f310727700b40.zip |
vim-patch:9.1.1169: using global variable for get_insert()/get_lambda_name() (#32713)
Problem: using global variable for get_insert()/get_lambda_name()
(after v9.1.1151)
Solution: let the functions return a string_T object instead
(Yee Cheng Chin)
In vim/vim#16720, `get_insert()` was modified to store a string length in a
global variable to be queried immediately by another `get_insert_len()`
function, which is somewhat fragile. Instead, just have the function
itself return a `string_T` object instead. Also do the same for
`get_lambda_name()` which has similar issues.
closes: vim/vim#16775
https://github.com/vim/vim/commit/0b5fe420715786249cd121d845dbd6a81f962d1b
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_comment.lua')
0 files changed, 0 insertions, 0 deletions