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:
parent
8a32ce5a69
commit
b3ef4be15d
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue