mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Adv search: fix handling of multiple params of a latex command
Fix the case of possibly nested parentheses
This commit is contained in:
parent
bd9d334738
commit
ae7a7fa882
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user