Adv search: fix handling of multiple params of a latex command

Fix the case of possibly nested parentheses
This commit is contained in:
Kornel Benko 2020-01-03 13:08:32 +01:00
parent bd9d334738
commit ae7a7fa882

View 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;
}