MCPcopy Create free account
hub / github.com/breck7/scroll / extendSelection

Function extendSelection

external/.scrollLibs.js:6888–6893  ·  view source on GitHub ↗
(doc, head, other, options, extend)

Source from the content-addressed store, hash-verified

6886
6887 // Extend the primary selection range, discard the rest.
6888 function extendSelection(doc, head, other, options, extend) {
6889 if (extend == null) {
6890 extend = doc.cm && (doc.cm.display.shift || doc.extend)
6891 }
6892 setSelection(doc, new Selection([extendRange(doc.sel.primary(), head, other, extend)], 0), options)
6893 }
6894
6895 // Extend all selections (pos is an array of selections with length
6896 // equal the number of selections)

Callers 4

.scrollLibs.jsFile · 0.85
onMouseDownFunction · 0.85
leftButtonStartDragFunction · 0.85
registerEventHandlersFunction · 0.85

Calls 2

setSelectionFunction · 0.85
extendRangeFunction · 0.85

Tested by

no test coverage detected