]> git.lyx.org Git - features.git/commitdiff
FindAdv: Partially revert e69f7022
authorKornel Benko <kornel@lyx.org>
Tue, 26 Feb 2019 12:24:36 +0000 (13:24 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:58 +0000 (14:39 +0200)
The slowness returns, but the search works again

src/lyxfind.cpp

index 3d9781e1cb365a7b22fc5df2b3eb32ac627f02b4..b7af22427ffbf52a51f60e9c371feb1acee1e5dc 100644 (file)
@@ -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;
                                }