mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed OOB error
This commit is contained in:
parent
487787b08e
commit
52544e6782
1 changed files with 1 additions and 6 deletions
|
@ -1017,7 +1017,7 @@ namespace IDE.ui
|
|||
if (cursorSection >= textSections.Count - 1)
|
||||
cursorSection = textSections.Count - 2;
|
||||
|
||||
if (cursorSection < mAutoComplete.mInvokeSrcPositions.Count)
|
||||
if ((cursorSection >= 0) && (cursorSection < mAutoComplete.mInvokeSrcPositions.Count))
|
||||
{
|
||||
var argText = mAutoComplete.mTargetEditWidget.mEditWidgetContent.ExtractString(mAutoComplete.mInvokeSrcPositions[cursorSection - 1],
|
||||
mAutoComplete.mInvokeSrcPositions[cursorSection] - mAutoComplete.mInvokeSrcPositions[cursorSection - 1], .. scope .());
|
||||
|
@ -1081,11 +1081,6 @@ namespace IDE.ui
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*if ((argText.StartsWith('(')) || (argText.StartsWith(',')))
|
||||
argText.Remove(0, 1);
|
||||
argText.Trim();
|
||||
Debug.WriteLine($"ArgText: {argText}");*/
|
||||
}
|
||||
|
||||
float paramX = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue