MCPcopy Create free account
hub / github.com/breck7/scroll / resetView

Function resetView

external/.scrollLibs.js:5679–5683  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

5677
5678 // Clear the view.
5679 function resetView(cm) {
5680 cm.display.viewFrom = cm.display.viewTo = cm.doc.first
5681 cm.display.view = []
5682 cm.display.viewOffset = 0
5683 }
5684
5685 function viewCuttingPoint(cm, oldN, newN, dir) {
5686 var index = findViewIndex(cm, oldN),

Callers 2

regChangeFunction · 0.85
updateDisplayIfNeededFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected