MCPcopy Index your code
hub / github.com/ajaxorg/ace / removeInLine

Method removeInLine

src/document.js:409–421  ·  view source on GitHub ↗

* Removes the specified columns from the `row`. This method also triggers a `"change"` event. * @param {Number} row The row to remove from * @param {Number} startColumn The column to start removing at * @param {Number} endColumn The column to stop removing at * @returns {Point}

(row, startColumn, endColumn)

Source from the content-addressed store, hash-verified

407
408 **/
409 removeInLine(row, startColumn, endColumn) {
410 var start = this.clippedPos(row, startColumn);
411 var end = this.clippedPos(row, endColumn);
412
413 this.applyDelta({
414 start: start,
415 end: end,
416 action: "remove",
417 lines: this.getLinesForRange({start: start, end: end})
418 }, true);
419
420 return this.clonePos(start);
421 }
422
423 /**
424 * Removes a range of full lines. This method also triggers the `"change"` event.

Callers 11

setRtlDirectionMethod · 0.80
insertMethod · 0.80
document_test.jsFile · 0.80
uncommentFunction · 0.80
$adjustRowMethod · 0.80
whitespace_test.jsFile · 0.80
whitespace.jsFile · 0.80
insertMethod · 0.80
insertMethod · 0.80
editor.16.jsFile · 0.80

Calls 4

clippedPosMethod · 0.95
applyDeltaMethod · 0.95
getLinesForRangeMethod · 0.95
clonePosMethod · 0.95

Tested by

no test coverage detected