neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 654cde369d491160cd856b9e45ad4facabacfb54
parent cc25cd2cb78574cf187b3ac778ac6eac7e6b6c93
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Thu,  7 Aug 2025 06:33:28 +0800

vim-patch:f7deb81: runtime(doc): fix typo at :h cmdline-autocompletion

The '?' needs to be escaped, because the autocommand is using
file-patterns (glob like) and not a regex). See :h file-pattern

closes: vim/vim#17890

https://github.com/vim/vim/commit/f7deb815b0b3f326a4b3b5b983da87e46df4f477

Co-authored-by: Girish Palya <girishji@gmail.com>

Diffstat:
Mruntime/doc/vimfn.txt | 2+-
Mruntime/lua/vim/_meta/vimfn.lua | 2+-
Msrc/nvim/eval.lua | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/runtime/doc/vimfn.txt b/runtime/doc/vimfn.txt @@ -11905,7 +11905,7 @@ wildtrigger() *wildtrigger()* *cmdline-autocompletion* Example: To make the completion menu pop up automatically as you type on the command line, use: >vim - autocmd CmdlineChanged [:/?] call wildtrigger() + autocmd CmdlineChanged [:/\?] call wildtrigger() set wildmode=noselect:lastused,full wildoptions=pum < To retain normal history navigation (up/down keys): >vim diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua @@ -10837,7 +10837,7 @@ function vim.fn.wildmenumode() end --- *cmdline-autocompletion* --- Example: To make the completion menu pop up automatically as --- you type on the command line, use: >vim ---- autocmd CmdlineChanged [:/?] call wildtrigger() +--- autocmd CmdlineChanged [:/\?] call wildtrigger() --- set wildmode=noselect:lastused,full wildoptions=pum --- < --- To retain normal history navigation (up/down keys): >vim diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua @@ -13095,7 +13095,7 @@ M.funcs = { *cmdline-autocompletion* Example: To make the completion menu pop up automatically as you type on the command line, use: >vim - autocmd CmdlineChanged [:/?] call wildtrigger() + autocmd CmdlineChanged [:/\?] call wildtrigger() set wildmode=noselect:lastused,full wildoptions=pum < To retain normal history navigation (up/down keys): >vim