]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0285: :syn sync grouphere may go beyond end of line v9.2.0285
authorzeertzjq <zeertzjq@outlook.com>
Fri, 3 Apr 2026 08:30:40 +0000 (08:30 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 3 Apr 2026 08:30:40 +0000 (08:30 +0000)
commitb7cffc84340d6c141fb8f7dbe771c4c15dcc47d4
tree3f2c48479628d6d33944a2232957eca827ff528a
parent880cf88ea6a3a0802c3faab739da914485459090
patch 9.2.0285: :syn sync grouphere may go beyond end of line

Problem:  :syn sync grouphere may go beyond end of line.
Solution: Start searching for the end of region at the end of match
          instead of a possibly invalid position (zeertzjq).

closes: #19896

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/syntax.c
src/testdir/test_syntax.vim
src/version.c