mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Was removed illogical code from the search function
This commit is contained in:
parent
2f28645c46
commit
7d724959af
1 changed files with 3 additions and 7 deletions
|
|
@ -1574,22 +1574,18 @@ private void SearchFindNextButton_MouseUp(object sender, MouseEventArgs e)
|
|||
if ((!searchWholeWordCheckBox.Checked) & (!searchCaseSensitiveCheckBox.Checked))
|
||||
{
|
||||
FindText(searchTextBox.Text, RichTextBoxFinds.None);
|
||||
return;
|
||||
}
|
||||
if (searchWholeWordCheckBox.Checked & searchCaseSensitiveCheckBox.Checked)
|
||||
else if (searchWholeWordCheckBox.Checked & searchCaseSensitiveCheckBox.Checked)
|
||||
{
|
||||
FindText(searchTextBox.Text, RichTextBoxFinds.MatchCase | RichTextBoxFinds.WholeWord);
|
||||
return;
|
||||
}
|
||||
if (searchCaseSensitiveCheckBox.Checked)
|
||||
else if (searchCaseSensitiveCheckBox.Checked)
|
||||
{
|
||||
FindText(searchTextBox.Text, RichTextBoxFinds.MatchCase);
|
||||
return;
|
||||
}
|
||||
if (searchWholeWordCheckBox.Checked)
|
||||
else if (searchWholeWordCheckBox.Checked)
|
||||
{
|
||||
FindText(searchTextBox.Text, RichTextBoxFinds.WholeWord);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Reference in a new issue