MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / selectLine

Function selectLine

static/js/codemirror/codemirror.js:2588–2590  ·  view source on GitHub ↗
(cm, line)

Source from the content-addressed store, hash-verified

2586 }
2587
2588 function selectLine(cm, line) {
2589 extendSelection(cm.doc, Pos(line, 0), clipPos(cm.doc, Pos(line + 1, 0)));
2590 }
2591
2592 // PROTOTYPE
2593

Callers 1

onMouseDownFunction · 0.85

Calls 3

extendSelectionFunction · 0.85
PosFunction · 0.85
clipPosFunction · 0.85

Tested by

no test coverage detected