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)