MCPcopy
hub / github.com/hokein/electron-sample-apps / selectLine

Function selectLine

mini-code-editor/cm/lib/codemirror.js:1308–1310  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

1306 setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});
1307 }
1308 function selectLine(line) {
1309 setSelectionUser({line: line, ch: 0}, clipPos({line: line + 1, ch: 0}));
1310 }
1311 function indentSelected(mode) {
1312 if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);
1313 var e = sel.to.line - (sel.to.ch ? 0 : 1);

Callers 1

onMouseDownFunction · 0.85

Calls 2

setSelectionUserFunction · 0.85
clipPosFunction · 0.85

Tested by

no test coverage detected