fix: use non-deprecated overload of vim.str_utfindex#1348
fix: use non-deprecated overload of vim.str_utfindex#1348L3MON4D3 merged 2 commits intoL3MON4D3:masterfrom
vim.str_utfindex#1348Conversation
|
IMHO it would be better to have local function that maps to the old |
|
Why does |
It should not. Thanks for catching that. |
9a2e962 to
484c002
Compare
|
Hi :) I'm also fine with me doing this, just let me know :D |
Oh yes, that has been the code I've been referring to but I clearly switched the order 🤦🏻♀️
I'm happy to do this, no worries :) |
|
Alright, looks good :D |
Thanks to you for the review! |
The current use of
vim.str_utfindexwas deprecated in neovim/neovim#30915. Now the encoding parameter is required and return value is an integer (instead of the table from the deprecated version corresponding to theutf-32andutf-16encodings).