mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-14 12:13:51 +02:00
Merge pull request #2276 from kallisto56/master
Fix cursor swap in `QuickFind.SelectAllMatches()`
This commit is contained in:
commit
266711c05a
1 changed files with 2 additions and 2 deletions
|
@ -279,7 +279,7 @@ namespace IDE.ui
|
|||
|
||||
bool Matches(int32 idx)
|
||||
{
|
||||
if (idx + findText.Length >= ewc.mData.mTextLength)
|
||||
if (idx + findText.Length > ewc.mData.mTextLength)
|
||||
return false;
|
||||
|
||||
for (var i = 0; i < findText.Length; i++)
|
||||
|
@ -352,7 +352,7 @@ namespace IDE.ui
|
|||
if (swapCursor != null)
|
||||
{
|
||||
Swap!(primaryCursor.mCursorTextPos, swapCursor.mCursorTextPos);
|
||||
Swap!(primaryCursor.mSelection.Value, swapCursor.mSelection.Value);
|
||||
Swap!(primaryCursor.mSelection.ValueRef, swapCursor.mSelection.ValueRef);
|
||||
}
|
||||
|
||||
return (!isFirstMatch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue