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:
parent
df4573dca1
commit
e5de09488e
7 changed files with 213 additions and 14 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue