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

Function changeLine

tools/pythonauto/static/codemirror/codemirror.js:2809–2817  ·  view source on GitHub ↗
(cm, handle, op)

Source from the content-addressed store, hash-verified

2807 }
2808
2809 function changeLine(cm, handle, op) {
2810 var no = handle, line = handle, doc = cm.doc;
2811 if (typeof handle == "number") line = getLine(doc, clipLine(doc, handle));
2812 else no = lineNo(handle);
2813 if (no == null) return null;
2814 if (op(line, no)) regChange(cm, no, no + 1);
2815 else return null;
2816 return line;
2817 }
2818
2819 function findPosH(doc, pos, dir, unit, visually) {
2820 var line = pos.line, ch = pos.ch, origDir = dir;

Callers 2

codemirror.jsFile · 0.70
addLineWidgetFunction · 0.70

Calls 4

getLineFunction · 0.70
clipLineFunction · 0.70
lineNoFunction · 0.70
regChangeFunction · 0.70

Tested by

no test coverage detected