1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed 'Match whole word'

This commit is contained in:
Brian Fiete 2025-01-25 17:41:23 -08:00
parent 12247df512
commit 0c9374cfa2
2 changed files with 2 additions and 1 deletions

View file

@ -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();

View file

@ -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)