mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Unindent fix with empty line at end of file
This commit is contained in:
parent
3a70cfaada
commit
fb8d528c6b
1 changed files with 3 additions and 3 deletions
|
@ -3247,7 +3247,9 @@ namespace Beefy.widgets
|
||||||
int lineStart;
|
int lineStart;
|
||||||
int lineEnd;
|
int lineEnd;
|
||||||
GetLinePosition(lineIdx, out lineStart, out lineEnd);
|
GetLinePosition(lineIdx, out lineStart, out lineEnd);
|
||||||
//lineStart += endAdjust;
|
|
||||||
|
if (lineStart == lineEnd)
|
||||||
|
continue;
|
||||||
|
|
||||||
for (int32 i = 0; i < mTabLength; i++)
|
for (int32 i = 0; i < mTabLength; i++)
|
||||||
{
|
{
|
||||||
|
@ -3255,7 +3257,6 @@ namespace Beefy.widgets
|
||||||
if (((c == '\t') && (i == 0)) || (c == ' '))
|
if (((c == '\t') && (i == 0)) || (c == ' '))
|
||||||
{
|
{
|
||||||
indentTextAction.mRemoveCharList.Add(((int32)lineStart + i + endAdjust, c));
|
indentTextAction.mRemoveCharList.Add(((int32)lineStart + i + endAdjust, c));
|
||||||
//RemoveText(lineStart, 1);
|
|
||||||
endAdjust--;
|
endAdjust--;
|
||||||
}
|
}
|
||||||
if (c != ' ')
|
if (c != ' ')
|
||||||
|
@ -3276,7 +3277,6 @@ namespace Beefy.widgets
|
||||||
int lineEnd;
|
int lineEnd;
|
||||||
GetLinePosition(lineIdx, out lineStart, out lineEnd);
|
GetLinePosition(lineIdx, out lineStart, out lineEnd);
|
||||||
lineStart += endAdjust;
|
lineStart += endAdjust;
|
||||||
//InsertText(lineStart, "\t");
|
|
||||||
indentTextAction.mInsertCharList.Add(((int32)lineStart, '\t'));
|
indentTextAction.mInsertCharList.Add(((int32)lineStart, '\t'));
|
||||||
endAdjust++;
|
endAdjust++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue