diff options
| author | XiaowenHu <me@xiaowenhu.com> | 2026-07-22 20:27:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-22 08:27:54 -0400 |
| commit | bd73d8c01146695b727849e67fc1f1f209d5884f (patch) | |
| tree | cc4a75ed3a70196a6a10e753b35c03707610a590 /runtime/syntax/python.vim | |
| parent | 526365a8d13fc28ebb52042ccd2b8b29e0054ea7 (diff) | |
| download | rneovim-bd73d8c01146695b727849e67fc1f1f209d5884f.tar.gz rneovim-bd73d8c01146695b727849e67fc1f1f209d5884f.tar.bz2 rneovim-bd73d8c01146695b727849e67fc1f1f209d5884f.zip | |
fix(inccommand): enforce timeout during matching, not just after a line #40892
Problem: do_sub() only checks the timeout limit after finishing a line.
A pathological regex will run on a single line input unbounded
until the compute is completed.
Solution: Pass the timeout limit to `vim_regexec_multi()` so the
computation on the regex engine is bounded per-line.
Signed-off-by: XiaowenHu96 <me@xiaowenhu.com>
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions