commit 286dcfc9c767f1e791e219d9b282c62a40145f1b
Author: Kornel Benko <[email protected]>
Date: Sun May 8 15:32:13 2022 +0200
FindAdv: Correct the 'fix' in 4bb427a2
:(
---
src/lyxfind.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index 669742e..2208fd4 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -3804,10 +3804,10 @@ MatchResult MatchStringAdv::findAux(DocIterator const &
cur, int len, bool at_be
int matchend = match.capturedEnd(0);
size_t strsize = qstr.size();
if (!opt.ignoreformat) {
- while (mres.match_len > 0) {
+ while (mres.match_len > 1) {
QChar c = qstr.at(matchend - 1);
if ((c == '\n') || (c == '}') || (c == '{')) {
- // mres.match_len--;
+ mres.match_len--;
matchend--;
}
else
@@ -3833,10 +3833,10 @@ MatchResult MatchStringAdv::findAux(DocIterator const &
cur, int len, bool at_be
int matchend = strend;
size_t strsize = str.size();
if (!opt.ignoreformat) {
- while (mres.match_len > 0) {
+ while (mres.match_len > 1) {
char c = str.at(matchend - 1);
if ((c == '\n') || (c == '}') || (c == '{')) {
- // mres.match_len--;
+ mres.match_len--;
matchend--;
}
else
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs