forked from mia/Aegisub
Actually initialize the initial MatchState in the search replace engine
This commit is contained in:
parent
a00e5dc967
commit
ca86b0da33
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ bool SearchReplaceEngine::FindReplace(bool replace) {
|
|||
auto it = context->ass->iterator_to(*line);
|
||||
size_t pos = 0;
|
||||
|
||||
MatchState replace_ms;
|
||||
MatchState replace_ms{nullptr, 0, -1};
|
||||
if (replace) {
|
||||
if (settings.field == SearchReplaceSettings::Field::TEXT)
|
||||
pos = context->textSelectionController->GetSelectionStart();
|
||||
|
|
Loading…
Reference in a new issue