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:
parent
4f7f48a6af
commit
a0c41cc5a5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue