Fix a small regression of DebugInfo

Select the entire DebugInfo text, with the command line params inserted.

This is a minor fix for an issue resulting from the last-minute changes in commit 0f8d572 (Add command line argument for plugin, a related notification and an API).

Close #11697
pull/11702/head
Shridhar Kumar 2022-05-18 17:21:20 -04:00 committed by Don Ho
parent 10f48e36ad
commit b3a9ec5dfe
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ void DebugInfoDlg::refreshDebugInfo()
// Set Debug Info text and leave the text in selected state
::SetDlgItemText(_hSelf, IDC_DEBUGINFO_EDIT, debugInfoDisplay.c_str());
::SendDlgItemMessage(_hSelf, IDC_DEBUGINFO_EDIT, EM_SETSEL, 0, _debugInfoStr.length() - 1);
::SendDlgItemMessage(_hSelf, IDC_DEBUGINFO_EDIT, EM_SETSEL, 0, debugInfoDisplay.length() - 1);
::SetFocus(::GetDlgItem(_hSelf, IDC_DEBUGINFO_EDIT));
}