1
0
Fork 0
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:
Brian Fiete 2020-11-03 05:25:53 -08:00
parent 4badc6eede
commit 6302b5e247

View file

@ -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)
{