Add disable In-Selection when multiple selections active for Count, Replace-All and Mark-all commands

Fix #7532
This commit is contained in:
Scott Sumner 2019-11-09 12:18:04 -05:00 committed by Don HO
parent f826c1180c
commit 485b5aa7c7
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -957,8 +957,8 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM
_options._isInSelection = true;
}
}
// Searching/replacing in column selection is not allowed
if ((*_ppEditView)->execute(SCI_GETSELECTIONMODE) == SC_SEL_RECTANGLE)
// Searching/replacing in multiple selections or column selection is not allowed
if (((*_ppEditView)->execute(SCI_GETSELECTIONMODE) == SC_SEL_RECTANGLE) || ((*_ppEditView)->execute(SCI_GETSELECTIONS) > 1))
{
checkVal = BST_UNCHECKED;
_options._isInSelection = false;