diff options
-rw-r--r-- | runtime/doc/builtin.txt | 1 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 1 | ||||
-rw-r--r-- | src/nvim/eval.lua | 2 |
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' } }, |