[vim/vim] Vim9: hang when a line break is used before "->(" (PR #21147)

8 views
Skip to first unread message

h_east

unread,
Aug 25, 2026, 6:06:52 AM (2 days ago) Aug 25
to vim/vim, Subscribed
Problem:  In Vim9 script a line break before "->(" makes Vim hang and
          use up memory.
Solution: Consume the line break for "->(" as well, and skip white
          space after "->" in a compiled function too.

fixes: #21144


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

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

Commit Summary

  • 4ab47cc Vim9: hang when a line break is used before "->("

File Changes

(3 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/21147@github.com>

Christ van Willegen

unread,
Aug 25, 2026, 8:17:52 AM (2 days ago) Aug 25
to vim...@googlegroups.com, reply+ACY5DGA57PM7V2ACQWTFF...@reply.github.com
Hi,

Op di 25 aug 2026, 12:06 schreef h_east <vim-dev...@256bit.org>:
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/21147%40github.com.

The original bug report also had a case with a \ on the continuation line. Is that included in the fix? I think I didn't see it in the test, but that may be a rendering bug on the web site...

Christ van Willegen

h_east

unread,
Aug 25, 2026, 8:40:51 AM (2 days ago) Aug 25
to vim/vim, vim-dev ML, Comment
h-east left a comment (vim/vim#21147)

The backslash case already worked before this patch. Continuation lines are
concatenated into one line before the expression is parsed, so they never
reach the code this patch changes. I checked on a 9.2.1001 build without the
patch: only the version without a backslash hangs.


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 commented.Message ID: <vim/vim/pull/21147/c5410504476@github.com>

Christian Brabandt

unread,
Aug 25, 2026, 4:21:53 PM (2 days ago) Aug 25
to vim/vim, vim-dev ML, Comment
chrisbra left a comment (vim/vim#21147)

thanks


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 commented.Message ID: <vim/vim/pull/21147/c5416250713@github.com>

Reply all
Reply to author
Forward
0 new messages