-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
Description
Steps to reproduce
-
Create an 'init.vim' file with the variation of content from
:h cmdline-autocompletion:let g:log = [] autocmd CmdlineChanged [:\/\?] call wildtrigger() | let g:log = g:log + [[getcmdline(), v:errmsg]] set wildmode=noselect:lastused,full set wildoptions=pum
-
vim --clean -u init.vim -
Type
:tag<Space><Space>. There is no error shown, but thev:errmsgis set toE433: No tags file. It can be verified later by:echo g:logwhich contains an entry['tag ', 'E433: No tags file'].Pressing
<Esc>shows an errorE73: Tag stack empty, but it is the same behavior as withoutwildtrigger()autocompletion.
Expected behaviour
Calling wildtrigger() never silently sets v:errmsg. Only if that message is actually shown.
Version of Vim
9.1.1908
Environment
OS: EndeavourOS Linux x86_64, 6.17.8-arch1-1
Terminal: Ghostty 1.2.3-arch2
Value of $TERM: xterm-ghostty
Shell: nushell 0.108.0