mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fix: autoreplace could go out of bounds
This commit is contained in:
@@ -1045,6 +1045,7 @@ void TextValueEditor::tryAutoReplace() {
|
||||
selection_end_i = end;
|
||||
fixSelection(TYPE_INDEX);
|
||||
replaceSelection(ar->replace, _ACTION_("auto replace"), false, false);
|
||||
end = selection_start_i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user