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

Function indentSelected

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1511–1515  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

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);
1514 for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);
1515 }
1516
1517 function indentLine(n, how) {
1518 if (!how) how = "add";

Callers

nothing calls this directly

Calls 2

posEqFunction · 0.70
indentLineFunction · 0.70

Tested by

no test coverage detected