[vim/vim] The command-completion-custiom shows nothing in some conditions (Issue #19303)

2 views
Skip to first unread message

Mao-Yining

unread,
Feb 1, 2026, 7:54:05 AM (yesterday) Feb 1
to vim/vim, Subscribed
mao-yining created an issue (vim/vim#19303)

Steps to reproduce

command -nargs=1 -complete=custom,TestComplete T echo "<args>"

function! TestComplete(A, C, P) abort
  return a:C.a:C->split('[ =]')->join()
endfunction

when typing ':T=n' will have T=nT n

command -nargs=1 -complete=custom,TestComplete T echo "<args>"

function! TestComplete(A, C, P) abort
  return a:C->split('[ =]')->join()
endfunction

won't have any completion message when typing ':T=abc'

Expected behaviour

Output T=abc in the second case.

Version of Vim

9.1.2114

Environment

GVim
Windows 11

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19303@github.com>

Christian Brabandt

unread,
Feb 1, 2026, 10:52:42 AM (yesterday) Feb 1
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19303)

I am confused, shouldn't arguments be separated by spaces?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19303/3831266478@github.com>

Mao-Yining

unread,
Feb 1, 2026, 10:54:09 AM (yesterday) Feb 1
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#19303)

So do I am appalled when I found that the first demonstration can work.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19303/3831269701@github.com>

Christian Brabandt

unread,
Feb 1, 2026, 10:57:26 AM (yesterday) Feb 1
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19303)

Well, for me it doesn't do anything, unless I type a space, so this: :T=n<tab> does not return anything, but this does: :T=n <tab>. Also for your second example.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19303/3831280835@github.com>

Mao-Yining

unread,
Feb 1, 2026, 11:03:50 AM (yesterday) Feb 1
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#19303)

Sorry I forget to tell you these setting to see the triggered things in time:

set wildmode=noselect:lastused,full
set wildmenu wildoptions=pum,fuzzy wildcharm=<Tab> pumheight=12
augroup CmdComplete
	au!
autocmd CmdlineChanged : call wildtrigger()
augroup END


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19303/3831294676@github.com>

Mao-Yining

unread,
Feb 1, 2026, 9:11:04 PM (23 hours ago) Feb 1
to vim/vim, Subscribed

Closed #19303 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/19303/issue_event/22451916784@github.com>

Mao-Yining

unread,
Feb 1, 2026, 9:11:04 PM (23 hours ago) Feb 1
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#19303)

Oh that's because it was filtered by vim. Sorry.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19303/3832551073@github.com>

Reply all
Reply to author
Forward
0 new messages