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

Function deleteH

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1483–1488  ·  view source on GitHub ↗
(dir, unit)

Source from the content-addressed store, hash-verified

1481 setCursor(pos.line, pos.ch, true);
1482 }
1483 function deleteH(dir, unit) {
1484 if (!posEq(sel.from, sel.to)) replaceRange("", sel.from, sel.to);
1485 else if (dir < 0) replaceRange("", findPosH(dir, unit), sel.to);
1486 else replaceRange("", sel.from, findPosH(dir, unit));
1487 userSelChange = true;
1488 }
1489 var goalColumn = null;
1490 function moveV(dir, unit) {
1491 var dist = 0, pos = localCoords(sel.inverted ? sel.from : sel.to, true);

Callers

nothing calls this directly

Calls 3

posEqFunction · 0.70
replaceRangeFunction · 0.70
findPosHFunction · 0.70

Tested by

no test coverage detected