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

Function findNextLine

external/.scrollLibs.js:11902–11909  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11900 var origDir = dir
11901 var lineObj = getLine(doc, pos.line)
11902 function findNextLine() {
11903 var l = pos.line + dir
11904 if (l < doc.first || l >= doc.first + doc.size) {
11905 return false
11906 }
11907 pos = new Pos(l, pos.ch, pos.sticky)
11908 return (lineObj = getLine(doc, l))
11909 }
11910 function moveOnce(boundToLine) {
11911 var next
11912 if (visually) {

Callers 1

moveOnceFunction · 0.85

Calls 1

getLineFunction · 0.85

Tested by

no test coverage detected