mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-09 10:47:57 +00:00
Fixes a weird bug found while playing with #7363.
Indeed, unchecking ignore format in that scenario was not matching anyway while searching. This patch fixes that behavior. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37943 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cfc6226f37
commit
62411b7c0f
@ -882,8 +882,9 @@ int MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_begin) con
|
||||
// plus the last subexpression, if a (.*?) was inserted in the constructor.
|
||||
if (!braces_match(m[0].first, m[0].second, open_braces))
|
||||
return 0;
|
||||
// Check braces on segments that matched all (.*?) subexpressions.
|
||||
for (size_t i = 1; i < m.size(); ++i)
|
||||
// Check braces on segments that matched all (.*?) subexpressions,
|
||||
// except the last "padding" one inserted by lyx.
|
||||
for (size_t i = 1; i < m.size() - 1; ++i)
|
||||
if (!braces_match(m[i].first, m[i].second))
|
||||
return false;
|
||||
// Exclude from the returned match length any length
|
||||
|
Loading…
Reference in New Issue
Block a user