From 57b84f6d640a13e0f1aed5e713609b366400c48f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 25 Sep 2023 06:37:54 +0800 Subject: 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> --- runtime/doc/builtin.txt | 1 + runtime/lua/vim/_meta/vimfn.lua | 1 + src/nvim/eval.lua | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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' } }, -- cgit From 2049e22f7f5c11d5ef34fca6c4634ac246dfa42d Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 25 Sep 2023 06:39:28 +0800 Subject: vim-patch:960822a11f70 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit runtime(doc): grammar fixes in doc (vim/vim#13164) https://github.com/vim/vim/commit/960822a11f70d2ed7e78b42fb6b75a9f8839ec9f Co-authored-by: Dominique Pell茅 --- runtime/doc/ft_rust.txt | 4 ++-- runtime/doc/nvim_terminal_emulator.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/doc/ft_rust.txt b/runtime/doc/ft_rust.txt index b912f732b6..083b6f579f 100644 --- a/runtime/doc/ft_rust.txt +++ b/runtime/doc/ft_rust.txt @@ -467,8 +467,8 @@ rust.vim Debugging ~ register. :RustInfoToFile [filename] *:RustInfoToFile* - Saves debugging info of the Vim Rust plugin to the the given - file, overwritting it. + Saves debugging info of the Vim Rust plugin to the given file, + overwriting it. ============================================================================== MAPPINGS *rust-mappings* diff --git a/runtime/doc/nvim_terminal_emulator.txt b/runtime/doc/nvim_terminal_emulator.txt index d0d535566d..0cfeb3dcb7 100644 --- a/runtime/doc/nvim_terminal_emulator.txt +++ b/runtime/doc/nvim_terminal_emulator.txt @@ -482,7 +482,7 @@ The function will be called with the list of arguments so far, and a second argument that is the name of the pty. *gdb-version* Only debuggers fully compatible with gdb will work. Vim uses the GDB/MI -interface. The "new-ui" command requires gdb version 7.12 or later. if you +interface. The "new-ui" command requires gdb version 7.12 or later. If you get this error: Undefined command: "new-ui". Try "help".~ Then your gdb is too old. -- cgit