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
|
@ -1486,10 +1486,8 @@ void Notepad_plus::doTrim(trimOp whichPart)
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
env._str4Replace = TEXT("");
|
env._str4Replace = TEXT("");
|
||||||
env._searchType = FindRegex;
|
env._searchType = FindRegex;
|
||||||
bool isEntireDoc = _pEditView->execute(SCI_GETSELECTIONSTART) == _pEditView->execute(SCI_GETSELECTIONEND);
|
_findReplaceDlg.processAll(ProcessReplaceAll, &env, true);
|
||||||
env._isInSelection = !isEntireDoc;
|
|
||||||
_findReplaceDlg.processAll(ProcessReplaceAll, &env, isEntireDoc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Notepad_plus::removeEmptyLine(bool isBlankContained)
|
void Notepad_plus::removeEmptyLine(bool isBlankContained)
|
||||||
|
|
Loading…
Reference in New Issue