CodeWindow: Ignore search error highlighting on empty string

Doesn't make sense to flag these as errors, since someone might search for another address.
This commit is contained in:
Lioncash 2015-08-03 04:23:03 -04:00
parent 6866373202
commit 7ba171a497
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ void CCodeWindow::OnAddrBoxChange(wxCommandEvent& event)
if (success)
pAddrCtrl->SetBackgroundColour(wxNullColour);
else
else if (!txt.empty())
pAddrCtrl->SetBackgroundColour(*wxRED);
pAddrCtrl->Refresh();