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 3 years ago committed by Don Ho
parent 10f48e36ad
commit b3a9ec5dfe

@ -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));
}

Loading…
Cancel
Save