Debugger: Prompt with previous search string.

When searching, fill the text box with the previous search by default.
Convenient when you want to edit it.
This commit is contained in:
Unknown W. Brackets 2021-04-21 19:47:18 -07:00
parent 572c20b4cd
commit 2932a9995f
2 changed files with 2 additions and 2 deletions

View File

@ -1188,7 +1188,7 @@ void CtrlDisAsmView::search(bool continueSearch)
if (continueSearch == false || searchQuery[0] == 0) if (continueSearch == false || searchQuery[0] == 0)
{ {
if (InputBox_GetString(MainWindow::GetHInstance(),MainWindow::GetHWND(),L"Search for:","",searchQuery) == false if (InputBox_GetString(MainWindow::GetHInstance(), MainWindow::GetHWND(), L"Search for:", searchQuery, searchQuery) == false
|| searchQuery[0] == 0) || searchQuery[0] == 0)
{ {
SetFocus(wnd); SetFocus(wnd);

View File

@ -745,7 +745,7 @@ void CtrlMemView::search(bool continueSearch)
u8* dataPointer = 0; u8* dataPointer = 0;
if (continueSearch == false || searchQuery.empty()) if (continueSearch == false || searchQuery.empty())
{ {
if (InputBox_GetString(GetModuleHandle(NULL),wnd,L"Search for", "",searchQuery) == false) if (InputBox_GetString(GetModuleHandle(NULL), wnd, L"Search for", searchQuery, searchQuery) == false)
{ {
SetFocus(wnd); SetFocus(wnd);
return; return;