From 0c9374cfa2b0e7247b80213a3e94b526b37cc3c7 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 25 Jan 2025 17:41:23 -0800 Subject: [PATCH] Fixed 'Match whole word' --- IDE/src/ui/FindAndReplaceDialog.bf | 2 +- IDE/src/ui/FindResultsPanel.bf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/IDE/src/ui/FindAndReplaceDialog.bf b/IDE/src/ui/FindAndReplaceDialog.bf index d7290fcd..cea5fff6 100644 --- a/IDE/src/ui/FindAndReplaceDialog.bf +++ b/IDE/src/ui/FindAndReplaceDialog.bf @@ -67,7 +67,7 @@ namespace IDE.ui AddDialogComponent(mMatchCaseCheckbox); mMatchWholeWordCheckbox = new DarkCheckBox(); - mMatchWholeWordCheckbox.Label = "Match &whole case"; + mMatchWholeWordCheckbox.Label = "Match &whole word"; AddDialogComponent(mMatchWholeWordCheckbox); mAbortButton = new DarkButton(); diff --git a/IDE/src/ui/FindResultsPanel.bf b/IDE/src/ui/FindResultsPanel.bf index b13e85b1..41141162 100644 --- a/IDE/src/ui/FindResultsPanel.bf +++ b/IDE/src/ui/FindResultsPanel.bf @@ -188,6 +188,7 @@ namespace IDE.ui bool lineMatched; if (mSearchOptions.mMatchWholeWord) { + line.EnsureNullTerminator(); bool isNewStart = true; int lineIdx = 0; for (let c32 in line.DecodedChars)