1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Lib fixes

This commit is contained in:
Brian Fiete 2020-02-07 08:50:53 -08:00
parent 61bd31836d
commit 2b2bb7c960
2 changed files with 11 additions and 3 deletions

View file

@ -1121,8 +1121,9 @@ namespace Beefy.widgets
None,
NoRestoreSelectionOnUndo = 1,
NoMoveCursor = 2,
IsGroupPart = 4,
IsGroupStart = 8
NoRecordHistory = 4,
IsGroupPart = 8,
IsGroupStart = 0x10
}
public virtual void InsertAtCursor(String theString, InsertFlags insertFlags = .None)

View file

@ -428,13 +428,20 @@ namespace System.Collections.Generic
public int IndexOf(T item)
{
//return Array.IndexOf(mItems, item, 0, mSize);
for (int i = 0; i < mSize; i++)
if (mItems[i] == item)
return i;
return -1;
}
public int LastIndexOf(T item)
{
for (int i = mSize - 1; i >= 0; i--)
if (mItems[i] == item)
return i;
return -1;
}
public int IndexOf(T item, int index)
{
for (int i = index; i < mSize; i++)