commit babb291ef39551835a3b33959431500d3795c5aa
Author: Kornel Benko <[email protected]>
Date: Tue Feb 26 13:24:36 2019 +0100
FindAdv: Partially revert e69f7022
The slowness returns, but the search works again
---
src/lyxfind.cpp | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index 3d9781e..b7af224 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -3120,13 +3120,8 @@ int findForwardAdv(DocIterator & cur, MatchStringAdv &
match)
}
}
if (match_len2 >= 0) {
- if (match_len2 == 0) {
- if (match_len_zero_count++ >
10) {
- // Omit loooong loops
in long paragraphs
- LYXERR(Debug::FIND,
"match_len2_zero_count: " << match_len_zero_count << ", match_len was " <<
match_len);
- break;
- }
- }
+ if (match_len2 == 0)
+ match_len_zero_count++;
else
match_len_zero_count = 0;
}