[vim/vim] Vim9: v:errmsg is set while looking ahead at a command (PR #21168)

3 views
Skip to first unread message

h_east

unread,
Aug 27, 2026, 12:48:50 PM (5 days ago) Aug 27
to vim/vim, Subscribed
Problem:  In Vim9 script a line starting with a dict member is looked
    ahead at, to tell an assignment from an expression.  Where the
    expression runs on into the next line the lookahead cannot follow
    it, and what it makes of that reaches "v:errmsg" and whatever is
    being redirected, though nothing is wrong and the function compiles.
Solution: Turn error messages off around the lookahead instead of
    silencing them.

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

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

Commit Summary

  • 6c6f913 Vim9: v:errmsg is set while looking ahead at a command

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

Christian Brabandt

unread,
Aug 27, 2026, 5:13:43 PM (4 days ago) Aug 27
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#21168)

Thanks. I think we can drop the comment, I think it is quite obvious that emsg_off was meant to be used


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

Reply all
Reply to author
Forward
0 new messages