1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-29 21:05:59 +02:00

Fixed out-of-bounds text else

This commit is contained in:
Brian Fiete 2021-10-13 12:09:36 -07:00
parent 8a32ce5a69
commit b3ef4be15d

View file

@ -3394,7 +3394,8 @@ namespace IDE.ui
int textStartPos = lineChar - (int32)trimmedLineText.Length;
String tabStartStr = scope String();
tabStartStr.Append(lineText, 0, textStartPos);
if (textStartPos > 0)
tabStartStr.Append(lineText, 0, textStartPos);
int32 columnPos = (int32)(GetTabbedWidth(tabStartStr, 0) / mCharWidth + 0.001f);
if (wantLineColumn > columnPos)
{