MCPcopy Create free account
hub / github.com/sql-js/sql.js / resetView

Function resetView

GUI/codemirror/lib/codemirror.js:2117–2121  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2115
2116 // Clear the view.
2117 function resetView(cm) {
2118 cm.display.viewFrom = cm.display.viewTo = cm.doc.first;
2119 cm.display.view = [];
2120 cm.display.viewOffset = 0;
2121 }
2122
2123 // Find the view element corresponding to a given line. Return null
2124 // when the line isn't visible.

Callers 2

updateDisplayInnerFunction · 0.85
regChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…