mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
parent
4bb427a244
commit
286dcfc9c7
@ -3804,10 +3804,10 @@ MatchResult MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_be
|
|||||||
int matchend = match.capturedEnd(0);
|
int matchend = match.capturedEnd(0);
|
||||||
size_t strsize = qstr.size();
|
size_t strsize = qstr.size();
|
||||||
if (!opt.ignoreformat) {
|
if (!opt.ignoreformat) {
|
||||||
while (mres.match_len > 0) {
|
while (mres.match_len > 1) {
|
||||||
QChar c = qstr.at(matchend - 1);
|
QChar c = qstr.at(matchend - 1);
|
||||||
if ((c == '\n') || (c == '}') || (c == '{')) {
|
if ((c == '\n') || (c == '}') || (c == '{')) {
|
||||||
// mres.match_len--;
|
mres.match_len--;
|
||||||
matchend--;
|
matchend--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -3833,10 +3833,10 @@ MatchResult MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_be
|
|||||||
int matchend = strend;
|
int matchend = strend;
|
||||||
size_t strsize = str.size();
|
size_t strsize = str.size();
|
||||||
if (!opt.ignoreformat) {
|
if (!opt.ignoreformat) {
|
||||||
while (mres.match_len > 0) {
|
while (mres.match_len > 1) {
|
||||||
char c = str.at(matchend - 1);
|
char c = str.at(matchend - 1);
|
||||||
if ((c == '\n') || (c == '}') || (c == '{')) {
|
if ((c == '\n') || (c == '}') || (c == '{')) {
|
||||||
// mres.match_len--;
|
mres.match_len--;
|
||||||
matchend--;
|
matchend--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user