1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Fixed some indenting issues, added indenting test

This commit is contained in:
Brian Fiete 2019-10-04 10:36:53 -07:00
parent df4573dca1
commit e5de09488e
7 changed files with 213 additions and 14 deletions

View file

@ -1548,7 +1548,19 @@ namespace Beefy.widgets
int lineChar;
GetLineCharAtIdx(textPos, out line, out lineChar);
bool wasLineEnd = mData.mText[textPos].mChar == '\n';
bool wasLineEnd = false;
for (int i = textPos; i < mData.mTextLength; i++)
{
char8 c = mData.mText[i].mChar;
if (c == '\n')
{
wasLineEnd = true;
break;
}
else if (!c.IsWhiteSpace)
break;
}
String lineText = scope String();
GetLineText(line, lineText);