[vim/vim] use 'tagfunc' for `:tag` completion (PR #21316)

8 views
Skip to first unread message

Rob Pilling

unread,
Sep 15, 2026, 7:27:10 AM (4 days ago) Sep 15
to vim/vim, Subscribed

With TAG_NO_TAGFUNC remaining just for :help completion

closes 12039


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/21316

Commit Summary

  • ff9b025 use 'tagfunc' for `:tag` completion

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21316@github.com>

Christian Brabandt

unread,
Sep 16, 2026, 3:07:12 PM (2 days ago) Sep 16
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#21316)

Hm, I am slightly worried that a badly written tagfunc could cause some harms. But I couldn't make it crash using e.g. bw or :new or other such strange things. So let me include this now, but I fix the wrong order of assert_equal() again :) and add a few more tests for some of those nasty things.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21316/c5703033671@github.com>

Rob Pilling

unread,
Sep 17, 2026, 12:58:03 PM (2 days ago) Sep 17
to vim/vim, Subscribed
bobrippling left a comment (vim/vim#21316)

Hm, I am slightly worried that a badly written tagfunc could cause some harms. But I couldn't make it crash using e.g. bw or :new or other such strange things. So let me include this now, but I fix the wrong order of assert_equal() again :) and add a few more tests for some of those nasty things.

Yes, I suppose I assumed that if calling tagfunc worked in ins-completion, it'd be ok in cmdline-completion, but I don't think that's a fair assumption. Maybe if the completion func does something with setcmdpos()/setcmdline() ? I've put in some more tests and that looks find though - #21334

(thanks for the assert_equal() order fixes - shall remember next time)


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21316/c5718166080@github.com>

Reply all
Reply to author
Forward
0 new messages