implemented support for range of deletions (unfinished)

This commit is contained in:
Kevin Jahns
2016-04-14 18:09:27 +02:00
parent e1df1a7a12
commit c72f62ecb6
3 changed files with 93 additions and 76 deletions

View File

@@ -36,7 +36,7 @@ module.exports = function (Y/* :any */) {
return [] // [op.target]
},
execute: function * (op) {
return yield* this.deleteOperation(op.target)
return yield* this.deleteOperation(op.target, op.length || 1)
}
},
Insert: {