]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.cpp
Track whether we have warned about mixing layouts across e.g. branches.
[lyx.git] / src / lyxfind.cpp
index d45fdd32cf1737ff2417a7eedb7222b3d358b7b4..f4bf76b64f5da25b3ed1260f9e169e7a4a3f1e46 100644 (file)
@@ -1565,8 +1565,8 @@ int Intervall::findclosing(int start, int end, char up = '{', char down = '}', i
       depth++;
     }
     else if (c == down) {
-      repeat--;
       if (depth == 0) {
+        repeat--;
         if ((repeat <= 0) || (par[i+1] != up))
           return i;
       }
@@ -3419,7 +3419,6 @@ int findForwardAdv(DocIterator & cur, MatchStringAdv & match)
                                else {
                                         if (++match_len_zero_count > 3) {
                                                 LYXERR(Debug::FIND, "match_len2_zero_count: " << match_len_zero_count << ", match_len was " << match_len);
-                                                match_len_zero_count = 0;
                                         }
                                        break;
                                }