aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-09-09 09:14:43 +0800
committerGitHub <noreply@github.com>2025-09-09 09:14:43 +0800
commitc951fa9eeb599fff2f5542b026c1eadff7d7e042 (patch)
treef8a6296941541ee645107fd9e541585d2255016d /runtime/lua
parentbbfcde3ab20e0a490c9cce9afce97412cb1fde32 (diff)
parent327a2d57eb94f672a501ce1a6a37bfb5f35f8281 (diff)
downloadrneovim-c951fa9eeb599fff2f5542b026c1eadff7d7e042.tar.gz
rneovim-c951fa9eeb599fff2f5542b026c1eadff7d7e042.tar.bz2
rneovim-c951fa9eeb599fff2f5542b026c1eadff7d7e042.zip
Merge pull request #35690 from zeertzjq/vim-9.1.1738
vim-patch:9.1.{1738,1744},d7d6a6f
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/_meta/vimfn.lua26
1 files changed, 9 insertions, 17 deletions
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua
index af8e4b786c..4f367d1a53 100644
--- a/runtime/lua/vim/_meta/vimfn.lua
+++ b/runtime/lua/vim/_meta/vimfn.lua
@@ -10835,7 +10835,6 @@ function vim.fn.wildmenumode() end
--- Start wildcard expansion in the command-line, using the
--- behavior defined by the 'wildmode' and 'wildoptions' settings.
---- See |cmdline-completion|.
---
--- This function also enables completion in search patterns such
--- as |/|, |?|, |:s|, |:g|, |:v| and |:vimgrep|.
@@ -10843,22 +10842,15 @@ function vim.fn.wildmenumode() end
--- Unlike pressing 'wildchar' manually, this function does not
--- produce a beep when no matches are found and generally
--- operates more quietly. This makes it suitable for triggering
---- completion automatically, such as from an |:autocmd|.
---- *cmdline-autocompletion*
---- Example: To make the completion menu pop up automatically as
---- you type on the command line, use: >vim
---- autocmd CmdlineChanged [:/\?] call wildtrigger()
---- set wildmode=noselect:lastused,full wildoptions=pum
---- <
---- To retain normal history navigation (up/down keys): >vim
---- cnoremap <Up> <C-U><Up>
---- cnoremap <Down> <C-U><Down>
---- <
---- To set an option specifically when performing a search, e.g.
---- to set 'pumheight': >vim
---- autocmd CmdlineEnter [/\?] set pumheight=8
---- autocmd CmdlineLeave [/\?] set pumheight&
---- <
+--- completion automatically.
+---
+--- Note: After navigating command-line history, the first call to
+--- wildtrigger() is a no-op; a second call is needed to start
+--- expansion. This is to support history navigation in
+--- command-line autocompletion.
+---
+--- See |cmdline-autocompletion|.
+---
--- Return value is always 0.
---
--- @return number