diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-26 09:50:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 09:50:37 +0800 |
commit | 191e8b40625731a652bade7000911554834afe5f (patch) | |
tree | ba2267f67dc2fc833de914708efde646d9df466b /src/nvim/eval.lua | |
parent | 8af97ecefa71c6391a52ab799d354e058cb470be (diff) | |
download | rneovim-191e8b40625731a652bade7000911554834afe5f.tar.gz rneovim-191e8b40625731a652bade7000911554834afe5f.tar.bz2 rneovim-191e8b40625731a652bade7000911554834afe5f.zip |
vim-patch:9.0.1485: no functions for converting from/to UTF-16 index (#23318)
Problem: no functions for converting from/to UTF-16 index.
Solution: Add UTF-16 flag to existing funtions and add strutf16len() and
utf16idx(). (Yegappan Lakshmanan, closes vim/vim#12216)
https://github.com/vim/vim/commit/67672ef097dd708244ff042a8364994da2b91e75
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r-- | src/nvim/eval.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 357ecd5575..09705148d0 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -65,8 +65,8 @@ return { bufwinid={args=1, base=1}, bufwinnr={args=1, base=1}, byte2line={args=1, base=1}, - byteidx={args=2, base=1, fast=true}, - byteidxcomp={args=2, base=1, fast=true}, + byteidx={args={2, 3}, base=1, fast=true}, + byteidxcomp={args={2, 3}, base=1, fast=true}, call={args={2, 3}, base=1}, ceil={args=1, base=1, float_func="ceil"}, changenr={}, @@ -75,7 +75,7 @@ return { char2nr={args={1, 2}, base=1, fast=true}, charclass={args=1, base=1}, charcol={args={1, 2}, base=1}, - charidx={args={2, 3}, base=1}, + charidx={args={2, 4}, base=1}, chdir={args=1, base=1}, cindent={args=1, base=1}, clearmatches={args={0, 1}, base=1}, @@ -397,6 +397,7 @@ return { strptime={args=2, base=1}, strridx={args={2, 3}, base=1}, strtrans={args=1, base=1, fast=true}, + strutf16len={args={1, 2}, base=1}, strwidth={args=1, base=1, fast=true}, submatch={args={1, 2}, base=1}, substitute={args=4, base=1}, @@ -435,6 +436,7 @@ return { undofile={args=1, base=1}, undotree={}, uniq={args={1, 3}, base=1}, + utf16idx={args={2, 4}, base=1}, values={args=1, base=1}, virtcol={args={1, 2}, base=1}, virtcol2col={args=3, base=1}, |