Fix: autoreplace could go out of bounds

This commit is contained in:
Twan van Laarhoven
2020-06-21 13:51:20 +02:00
parent b42639afc3
commit c07a8ff8f6
+1
View File
@@ -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;
}
}
}