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:
Thomas Goyne 2013-11-02 16:24:55 -07:00
parent a8bee18308
commit 0a34a5fc94
1 changed files with 1 additions and 1 deletions

View File

@ -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);