Fix a bug in multiple-selection edits
This commit is contained in:
parent
40a28d4850
commit
7e763556a5
1 changed files with 1 additions and 0 deletions
|
@ -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(),
|
||||
[
|
||||
|
|
Loading…
Add table
Reference in a new issue