mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +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 lineEnd;
|
||||
GetLinePosition(lineIdx, out lineStart, out lineEnd);
|
||||
//lineStart += endAdjust;
|
||||
|
||||
if (lineStart == lineEnd)
|
||||
continue;
|
||||
|
||||
for (int32 i = 0; i < mTabLength; i++)
|
||||
{
|
||||
|
@ -3255,7 +3257,6 @@ namespace Beefy.widgets
|
|||
if (((c == '\t') && (i == 0)) || (c == ' '))
|
||||
{
|
||||
indentTextAction.mRemoveCharList.Add(((int32)lineStart + i + endAdjust, c));
|
||||
//RemoveText(lineStart, 1);
|
||||
endAdjust--;
|
||||
}
|
||||
if (c != ' ')
|
||||
|
@ -3276,7 +3277,6 @@ namespace Beefy.widgets
|
|||
int lineEnd;
|
||||
GetLinePosition(lineIdx, out lineStart, out lineEnd);
|
||||
lineStart += endAdjust;
|
||||
//InsertText(lineStart, "\t");
|
||||
indentTextAction.mInsertCharList.Add(((int32)lineStart, '\t'));
|
||||
endAdjust++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue