Fix a bug in multiple-selection edits

This commit is contained in:
Eric Zhang 2021-06-02 23:56:23 -05:00
parent 40a28d4850
commit 7e763556a5

View file

@ -163,6 +163,7 @@ class Rustpad {
if (typeof op === "string") {
// Insert
const pos = this.model.getPositionAt(index);
index += op.length;
this.model.pushEditOperations(
this.options.editor.getSelections(),
[