]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0729: % skips parens on continued quoted lines v9.2.0729
authorBarrett Ruth <br@barrettruth.com>
Fri, 26 Jun 2026 19:46:11 +0000 (19:46 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 26 Jun 2026 19:46:11 +0000 (19:46 +0000)
commitc44a6561cc886d1518f02ca7dffdae270e2aec00
treea5766c01387416274b4eada038202805600d670c
parent26dfed583f662c6f40a1ffdbfeb3b1b50189ad93
patch 9.2.0729: % skips parens on continued quoted lines

Problem:  The "%" command and bracket/text-object motions can skip the
          matching paren or bracket on a line with quotes and a trailing
          backslash.
Solution: Use the quote state at the search start when an odd-quote line
          is continued with a backslash, instead of always treating the
          search as starting in quotes (Barrett Ruth).

closes: #20631

Signed-off-by: Barrett Ruth <br@barrettruth.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/search.c
src/testdir/test_search.vim
src/testdir/test_textobjects.vim
src/version.c