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

Function setCursor

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1434–1437  ·  view source on GitHub ↗
(line, ch, user)

Source from the content-addressed store, hash-verified

1432 else return getNonHidden(-1) || getNonHidden(1);
1433 }
1434 function setCursor(line, ch, user) {
1435 var pos = clipPos({line: line, ch: ch || 0});
1436 (user ? setSelectionUser : setSelection)(pos, pos);
1437 }
1438
1439 function clipLine(n) {return Math.max(0, Math.min(n, doc.size-1));}
1440 function clipPos(pos) {

Callers 5

CodeMirrorFunction · 0.85
onMouseDownFunction · 0.85
dragEndFunction · 0.85
moveHFunction · 0.85
moveVFunction · 0.85

Calls 1

clipPosFunction · 0.70

Tested by

no test coverage detected