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

Function ensureCursorVisible

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

Source from the content-addressed store, hash-verified

4981 // Make sure that at the end of the operation the current cursor is
4982 // shown.
4983 function ensureCursorVisible(cm) {
4984 resolveScrollToPos(cm)
4985 var cur = cm.getCursor()
4986 cm.curOp.scrollToPos = { from: cur, to: cur, margin: cm.options.cursorScrollMargin }
4987 }
4988
4989 function scrollToCoords(cm, x, y) {
4990 if (x != null || y != null) {

Callers 5

setSelectionNoUndoFunction · 0.85
.scrollLibs.jsFile · 0.85
deleteNearSelectionFunction · 0.85
applyTextInputFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 1

resolveScrollToPosFunction · 0.85

Tested by

no test coverage detected