mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 05:14:10 +02:00
Fixed 'Match whole word'
This commit is contained in:
parent
12247df512
commit
0c9374cfa2
2 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,7 @@ namespace IDE.ui
|
||||||
AddDialogComponent(mMatchCaseCheckbox);
|
AddDialogComponent(mMatchCaseCheckbox);
|
||||||
|
|
||||||
mMatchWholeWordCheckbox = new DarkCheckBox();
|
mMatchWholeWordCheckbox = new DarkCheckBox();
|
||||||
mMatchWholeWordCheckbox.Label = "Match &whole case";
|
mMatchWholeWordCheckbox.Label = "Match &whole word";
|
||||||
AddDialogComponent(mMatchWholeWordCheckbox);
|
AddDialogComponent(mMatchWholeWordCheckbox);
|
||||||
|
|
||||||
mAbortButton = new DarkButton();
|
mAbortButton = new DarkButton();
|
||||||
|
|
|
@ -188,6 +188,7 @@ namespace IDE.ui
|
||||||
bool lineMatched;
|
bool lineMatched;
|
||||||
if (mSearchOptions.mMatchWholeWord)
|
if (mSearchOptions.mMatchWholeWord)
|
||||||
{
|
{
|
||||||
|
line.EnsureNullTerminator();
|
||||||
bool isNewStart = true;
|
bool isNewStart = true;
|
||||||
int lineIdx = 0;
|
int lineIdx = 0;
|
||||||
for (let c32 in line.DecodedChars)
|
for (let c32 in line.DecodedChars)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue