diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-06-11 12:05:18 +0100 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-06-11 12:45:43 +0100 |
commit | 5e49ef0af3cb8dba658e5d0dc6a807f8edebf590 (patch) | |
tree | 4d819cee76851c0c3168cd6f12c7d5ea87a586be /runtime/doc/lua.txt | |
parent | d8e384b7bfd5829e5ff5006202faa584b3211e84 (diff) | |
download | rneovim-5e49ef0af3cb8dba658e5d0dc6a807f8edebf590.tar.gz rneovim-5e49ef0af3cb8dba658e5d0dc6a807f8edebf590.tar.bz2 rneovim-5e49ef0af3cb8dba658e5d0dc6a807f8edebf590.zip |
refactor(lua): improve type annotations
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index e2fcac1bda..72babb067e 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -981,6 +981,9 @@ vim.str_byteindex({str}, {index}, {use_utf16}) *vim.str_byteindex()* • {index} (`integer`) • {use_utf16} (`boolean?`) + Return: ~ + (`integer`) + vim.str_utf_end({str}, {index}) *vim.str_utf_end()* Gets the distance (in bytes) from the last byte of the codepoint (character) that {index} points to. |