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

Function resetView

tools/pythonauto/static/codemirrorepl/codemirror.js:2103–2107  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2101
2102 // Clear the view.
2103 function resetView(cm) {
2104 cm.display.viewFrom = cm.display.viewTo = cm.doc.first;
2105 cm.display.view = [];
2106 cm.display.viewOffset = 0;
2107 }
2108
2109 // Find the view element corresponding to a given line. Return null
2110 // when the line isn't visible.

Callers 2

updateDisplayInnerFunction · 0.85
regChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected