]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0692: Wrong patlen value in ex_substitute() v9.1.0692
authorzeertzjq <zeertzjq@outlook.com>
Sat, 24 Aug 2024 09:33:39 +0000 (11:33 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 24 Aug 2024 09:33:39 +0000 (11:33 +0200)
commitd1c8d2de4b9fa44b3d2b39b7ed8b92846c5502b7
tree6689e48aa4aa1b58cebbef1d3b537d4d5bc39dfc
parent3f7024cf865bb9790988e24909ec3e37427555e7
patch 9.1.0692: Wrong patlen value in ex_substitute()

Problem:  Wrong patlen value in ex_substitute() (after 9.1.0426).
Solution: Compute patlen after finding end separator.
          (zeertzjq)

Add a more explicit test.  The test already passes as the only case
where a overlarge patlen value matters was fixed by patch 9.1.0689.

closes: #15565

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