Revert "Fix Trim Operations not working on selection"

This reverts commit bf34ef0dd5 due to bug https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12658
This commit is contained in:
Don Ho 2022-12-18 21:24:24 +01:00
parent 4f7f48a6af
commit a0c41cc5a5
1 changed files with 2 additions and 4 deletions

View File

@ -1487,9 +1487,7 @@ void Notepad_plus::doTrim(trimOp whichPart)
return;
env._str4Replace = TEXT("");
env._searchType = FindRegex;
bool isEntireDoc = _pEditView->execute(SCI_GETSELECTIONSTART) == _pEditView->execute(SCI_GETSELECTIONEND);
env._isInSelection = !isEntireDoc;
_findReplaceDlg.processAll(ProcessReplaceAll, &env, isEntireDoc);
_findReplaceDlg.processAll(ProcessReplaceAll, &env, true);
}
void Notepad_plus::removeEmptyLine(bool isBlankContained)