[vim/vim] :legacy / :vim9exe: Affect script context for the option set (PR #20683)

2 views
Skip to first unread message

Illia Bobyr

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

When remembering script context for an option value we should consider flags "CMOD_LEGACY" and "CMOD_VIM9CMD" set in "cmdmod.cmd_flags" by the ":legacy" and ":vim9exe" command prefixes. Otherwise, if an option value is an expression, it might be evaluated in an incorrect context.


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

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

Commit Summary

  • 7a149a4 :legacy / :vim9exe: Affect script context for the option set

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

Reply all
Reply to author
Forward
0 new messages