[LyX/master] Adv search: fix handling of multiple params of a latex command
Kornel Benko
kornel at lyx.org
Fri Jan 3 11:55:17 UTC 2020
commit ae7a7fa882297d4f95edb8d707b1da8996236e60
Author: Kornel Benko <kornel at 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;
}
More information about the lyx-cvs
mailing list