mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-07 05:54:40 +02:00
Revert "Fix Trim Operations not working on selection"
This reverts commit bf34ef0dd568b792627813a4445adf649a5c5ba6 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;
|
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…
x
Reference in New Issue
Block a user