]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.cpp
Fix bug #11716
[lyx.git] / src / lyxfind.cpp
index d45fdd32cf1737ff2417a7eedb7222b3d358b7b4..fa00b880743aa6092805d58766cf801f382583be 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;
       }