mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Removed sized array initialization from tuples
This commit is contained in:
parent
bb34a468bb
commit
5bed292e87
7 changed files with 24 additions and 40 deletions
|
@ -31,10 +31,9 @@ namespace IDE.ui
|
|||
mSelection = EditSelection(lineStart, lineEnd);
|
||||
var selectionText = scope String();
|
||||
GetSelectionText(selectionText);
|
||||
//if (selectionText.Length > 512)
|
||||
//return false;
|
||||
|
||||
//int idx = selectionText.IndexOf("line ");
|
||||
if (selectionText.Length > 1024) // Remove middle
|
||||
selectionText.Remove(1024/2, selectionText.Length - 1024);
|
||||
|
||||
int32 errLine = 0;
|
||||
int32 errLineChar = 0;
|
||||
|
@ -50,7 +49,7 @@ namespace IDE.ui
|
|||
|
||||
int32 inTextPos = -1;
|
||||
|
||||
for (int32 i = 1; i < Math.Min(512, selectionText.Length); i++)
|
||||
for (int32 i = 1; i < selectionText.Length; i++)
|
||||
{
|
||||
if (success)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue