aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-25 06:37:54 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-09-25 06:38:38 +0800
commit57b84f6d640a13e0f1aed5e713609b366400c48f (patch)
treee071f735ada8f83647833675e97f6158974f3c77
parent7d4967547b2793a29f9bd602ec6819458be1bd49 (diff)
downloadrneovim-57b84f6d640a13e0f1aed5e713609b366400c48f.tar.gz
rneovim-57b84f6d640a13e0f1aed5e713609b366400c48f.tar.bz2
rneovim-57b84f6d640a13e0f1aed5e713609b366400c48f.zip
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>
-rw-r--r--runtime/doc/builtin.txt1
-rw-r--r--runtime/lua/vim/_meta/vimfn.lua1
-rw-r--r--src/nvim/eval.lua2
3 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 2dd290fef1..207bf817b0 100644
--- 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
index 4113797759..6686661a27 100644
--- 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
index fe816ee8c2..858f7c8afd 100644
--- 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' } },