MCPcopy Index your code
hub / github.com/csev/py4e / selectLine

Function selectLine

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1508–1510  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

1506 setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});
1507 }
1508 function selectLine(line) {
1509 setSelectionUser({line: line, ch: 0}, clipPos({line: line + 1, ch: 0}));
1510 }
1511 function indentSelected(mode) {
1512 if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);
1513 var e = sel.to.line - (sel.to.ch ? 0 : 1);

Callers 1

onMouseDownFunction · 0.70

Calls 2

setSelectionUserFunction · 0.85
clipPosFunction · 0.70

Tested by

no test coverage detected