commit 57b84f6d640a13e0f1aed5e713609b366400c48f
parent 7d4967547b2793a29f9bd602ec6819458be1bd49
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 25 Sep 2023 06:37:54 +0800
vim-patch:790f9a890cee
runtime(doc): Add a missing '<' to the help of strutf16len() (vim/vim#13168)
https://github.com/vim/vim/commit/790f9a890ceeb9539776265cba0f026fb2c96790
Co-authored-by: a5ob7r <12132068+a5ob7r@users.noreply.github.com>
Diffstat:
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
@@ -7742,6 +7742,7 @@ strutf16len({string} [, {countcc}]) *strutf16len()*
echo strutf16len('馃槉') " returns 2
echo strutf16len('a台虂') " returns 1
echo strutf16len('a台虂', v:true) " returns 3
+<
strwidth({string}) *strwidth()*
The result is a Number, which is the number of display cells
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua
@@ -9192,6 +9192,7 @@ function vim.fn.strtrans(string) end
--- echo strutf16len('馃槉') " returns 2
--- echo strutf16len('a台虂') " returns 1
--- echo strutf16len('a台虂', v:true) " returns 3
+--- <
---
--- @param string string
--- @param countcc? 0|1
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
@@ -10973,7 +10973,7 @@ M.funcs = {
echo strutf16len('馃槉') " returns 2
echo strutf16len('a台虂') " returns 1
echo strutf16len('a台虂', v:true) " returns 3
-
+ <
]=],
name = 'strutf16len',
params = { { 'string', 'string' }, { 'countcc', '0|1' } },