mirror of
https://github.com/neovim/neovim.git
synced 2026-08-25 00:21:55 +00:00
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
0b5fe42071
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>