From 4e0bbd1a00233e80d160476bc99c6221023bc3ad Mon Sep 17 00:00:00 2001 From: Chernyavsky Andrey Date: Sat, 14 Jun 2025 18:08:45 +0500 Subject: [PATCH 1/2] Fix cursor swap in `QuickFind.SelectAllMatches()` --- IDE/src/ui/QuickFind.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDE/src/ui/QuickFind.bf b/IDE/src/ui/QuickFind.bf index e52785f2..bc4d2e1b 100644 --- a/IDE/src/ui/QuickFind.bf +++ b/IDE/src/ui/QuickFind.bf @@ -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); From 8f9628e6af87d200b8a20c87d4b7a1ffb6320b8f Mon Sep 17 00:00:00 2001 From: Chernyavsky Andrey Date: Sun, 15 Jun 2025 17:19:43 +0500 Subject: [PATCH 2/2] Fix skipping when matching word is at EOF --- IDE/src/ui/QuickFind.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDE/src/ui/QuickFind.bf b/IDE/src/ui/QuickFind.bf index bc4d2e1b..8ccde6ea 100644 --- a/IDE/src/ui/QuickFind.bf +++ b/IDE/src/ui/QuickFind.bf @@ -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++)