[vim/vim] :legacy / :vim9cmd: Make flags exclusive (PR #20682)

1 view
Skip to first unread message

Illia Bobyr

unread,
Jun 30, 2026, 11:34:39 PM (3 hours ago) Jun 30
to vim/vim, Subscribed

When one of the ":legacy" or ":vim9cmd" prefixes is used, it sets a flag. As the rest of the code might check either of the flags, setting both could produce confusing results. It does not make a lot of sense to use both prefixes in the same command. But just in case it is used, selecting the last prefix seems reasonable.


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

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

Commit Summary

  • 9d230a7 :legacy / :vim9cmd: Make flags exclusive

File Changes

(1 file)

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/20682@github.com>

Reply all
Reply to author
Forward
0 new messages