* Removes the `range` from the document. * @param {IRange} range A specified Range to remove * @returns {Point} Returns the new `start` property of the range, which contains `startRow` and `startColumn`. If `range` is empty, this function returns the unmodified value of `range.start`.
(range)
| 387 | |
| 388 | **/ |
| 389 | remove(range) { |
| 390 | var start = this.clippedPos(range.start.row, range.start.column); |
| 391 | var end = this.clippedPos(range.end.row, range.end.column); |
| 392 | this.applyDelta({ |
| 393 | start: start, |
| 394 | end: end, |
| 395 | action: "remove", |
| 396 | lines: this.getLinesForRange({start: start, end: end}) |
| 397 | }); |
| 398 | return this.clonePos(start); |
| 399 | } |
| 400 | |
| 401 | /** |
| 402 | * Removes the specified columns from the `row`. This method also triggers a `"change"` event. |
no test coverage detected