mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed freeze during OpenCodeBlock
This commit is contained in:
parent
4badc6eede
commit
6302b5e247
1 changed files with 5 additions and 1 deletions
|
@ -1923,7 +1923,10 @@ namespace IDE.ui
|
|||
if (mayBeExpr)
|
||||
{
|
||||
if (prevC.IsWhiteSpace)
|
||||
{
|
||||
checkIdx--;
|
||||
continue;
|
||||
}
|
||||
if ((prevC == '(') || (prevC == ')') || (prevC == '{') || (prevC == '}'))
|
||||
{
|
||||
mayBeExpr = false;
|
||||
|
@ -1933,6 +1936,7 @@ namespace IDE.ui
|
|||
if ((prevC == 'r') && (displayType == .Keyword))
|
||||
{
|
||||
// operator overload
|
||||
checkIdx--;
|
||||
mayBeExpr = false;
|
||||
continue;
|
||||
}
|
||||
|
@ -1955,7 +1959,7 @@ namespace IDE.ui
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (prevC == '{')
|
||||
if ((prevC == '{') || (prevC == '}'))
|
||||
break;
|
||||
if (parenOpenCount == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue