MCPcopy Index your code
hub / github.com/DHTMLX/gantt / replaceOneSelection

Function replaceOneSelection

samples/common/codehighlight/codemirror.js:5067–5071  ·  view source on GitHub ↗
(doc, i, range, options)

Source from the content-addressed store, hash-verified

5065
5066 // Updates a single range in the selection.
5067 function replaceOneSelection(doc, i, range, options) {
5068 var ranges = doc.sel.ranges.slice(0);
5069 ranges[i] = range;
5070 setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);
5071 }
5072
5073 // Reset the selection to a single range.
5074 function setSimpleSelection(doc, anchor, head, options) {

Callers 3

leftButtonSelectFunction · 0.85
indentLineFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 2

setSelectionFunction · 0.85
normalizeSelectionFunction · 0.85

Tested by

no test coverage detected