MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / selectLine

Function selectLine

src/cm/codemirror.js:1443–1445  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

1441 return {from: {line: pos.line, ch: start}, to: {line: pos.line, ch: end}};
1442 }
1443 function selectLine(line) {
1444 setSelectionUser({line: line, ch: 0}, clipPos({line: line + 1, ch: 0}));
1445 }
1446 function indentSelected(mode) {
1447 if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);
1448 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…