mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 06:44:10 +02:00
fix some whitespaces
This commit is contained in:
parent
f1652dd1aa
commit
28ad51fbfb
1 changed files with 5 additions and 10 deletions
|
@ -2244,11 +2244,8 @@ namespace IDE.ui
|
||||||
noStar = true;
|
noStar = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (true || (HasSelection()) && (mSelection.Value.Length > 0))
|
if (true || (HasSelection()) && (mSelection.Value.Length > 0))
|
||||||
{
|
{
|
||||||
//int cursorEndPos = CursorTextPos;
|
|
||||||
|
|
||||||
// set selection to begin from line start
|
// set selection to begin from line start
|
||||||
int lineIdx;
|
int lineIdx;
|
||||||
int lineChar;
|
int lineChar;
|
||||||
|
@ -2280,7 +2277,6 @@ namespace IDE.ui
|
||||||
//int lastCharPos = maxPos - (afterTrimStart - afterTrimEnd);
|
//int lastCharPos = maxPos - (afterTrimStart - afterTrimEnd);
|
||||||
|
|
||||||
int q = 0;
|
int q = 0;
|
||||||
//var nc = trimmedStr.Count('\n');
|
|
||||||
|
|
||||||
if (doComment != false)
|
if (doComment != false)
|
||||||
{
|
{
|
||||||
|
@ -2303,7 +2299,6 @@ namespace IDE.ui
|
||||||
mSelection = EditSelection(minPos, maxPos + q);
|
mSelection = EditSelection(minPos, maxPos + q);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (undoBatchStart != null)
|
if (undoBatchStart != null)
|
||||||
mData.mUndoManager.Add(undoBatchStart.mBatchEnd);
|
mData.mUndoManager.Add(undoBatchStart.mBatchEnd);
|
||||||
|
|
||||||
|
@ -2323,6 +2318,7 @@ namespace IDE.ui
|
||||||
if (CheckReadOnly())
|
if (CheckReadOnly())
|
||||||
return false;
|
return false;
|
||||||
bool noStar = false;
|
bool noStar = false;
|
||||||
|
|
||||||
var startLineAndCol = CursorLineAndColumn;
|
var startLineAndCol = CursorLineAndColumn;
|
||||||
if ((!HasSelection()) && (doComment != null))
|
if ((!HasSelection()) && (doComment != null))
|
||||||
{
|
{
|
||||||
|
@ -2335,7 +2331,6 @@ namespace IDE.ui
|
||||||
|
|
||||||
if ((HasSelection()) && (mSelection.Value.Length > 0))
|
if ((HasSelection()) && (mSelection.Value.Length > 0))
|
||||||
{
|
{
|
||||||
|
|
||||||
int lineIdx;
|
int lineIdx;
|
||||||
int lineChar;
|
int lineChar;
|
||||||
GetLineCharAtIdx(mSelection.GetValueOrDefault().MinPos, out lineIdx, out lineChar);
|
GetLineCharAtIdx(mSelection.GetValueOrDefault().MinPos, out lineIdx, out lineChar);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue