mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-30 01:04:57 +02:00
Fix the regression: "Replace all" and "Mark all" work partially
This commit is contained in:
parent
2e25741a22
commit
1cd454a8d5
@ -1842,18 +1842,15 @@ int FindReplaceDlg::processAll(ProcessOperation op, const FindOption *opt, bool
|
|||||||
}
|
}
|
||||||
|
|
||||||
//then adjust scope if the full document needs to be changed
|
//then adjust scope if the full document needs to be changed
|
||||||
if (op == ProcessCountAll)
|
if (op == ProcessCountAll && pOptions->_isInSelection)
|
||||||
{
|
{
|
||||||
if (pOptions->_isInSelection)
|
startPosition = cr.cpMin;
|
||||||
{
|
endPosition = cr.cpMax;
|
||||||
startPosition = cr.cpMin;
|
}
|
||||||
endPosition = cr.cpMax;
|
else if (pOptions->_isWrapAround || isEntire || op == ProcessCountAll) //entire document needs to be scanned
|
||||||
}
|
{
|
||||||
else if (pOptions->_isWrapAround || isEntire) //entire document needs to be scanned
|
startPosition = 0;
|
||||||
{
|
endPosition = docLength;
|
||||||
startPosition = 0;
|
|
||||||
endPosition = docLength;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//then readjust scope if the selection override is active and allowed
|
//then readjust scope if the selection override is active and allowed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user