From: Kornel Benko Date: Tue, 26 Feb 2019 12:24:36 +0000 (+0100) Subject: FindAdv: Partially revert e69f7022 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=729be96a6e10a4748e48c4da4068ba689f1a1164;p=features.git FindAdv: Partially revert e69f7022 The slowness returns, but the search works again --- diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 3d9781e1cb..b7af22427f 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; }