commit ae7a7fa882297d4f95edb8d707b1da8996236e60
Author: Kornel Benko <kor...@lyx.org>
Date:   Fri Jan 3 13:08:32 2020 +0100

    Adv search: fix handling of multiple params of a latex command
    
    Fix the case of possibly nested parentheses
---
 src/lyxfind.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index d45fdd3..fa00b88 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -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;
       }
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to