forked from mia/Aegisub
Always search all lines if only one line is selected
I.e. ignore the "In Selection" option for find (but not Replace All) if the selection is probably not meaningful.
This commit is contained in:
parent
a8bee18308
commit
0a34a5fc94
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ bool SearchReplaceEngine::FindReplace(bool replace) {
|
|||
it = circular_next(it, context->ass->Line);
|
||||
|
||||
auto const& sel = context->selectionController->GetSelectedSet();
|
||||
bool selection_only = settings.limit_to == SearchReplaceSettings::Limit::SELECTED;
|
||||
bool selection_only = sel.size() > 1 && settings.limit_to == SearchReplaceSettings::Limit::SELECTED;
|
||||
|
||||
do {
|
||||
AssDialogue *diag = dynamic_cast<AssDialogue*>(&*it);
|
||||
|
|
Loading…
Reference in a new issue