MCPcopy Create free account
hub / github.com/TruthHun/BookStack / findNextLine

Function findNextLine

static/mergely/lib/codemirror.js:4819–4824  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4817 var line = pos.line, ch = pos.ch, origDir = dir;
4818 var lineObj = getLine(doc, line);
4819 function findNextLine() {
4820 var l = line + dir;
4821 if (l < doc.first || l >= doc.first + doc.size) return false
4822 line = l;
4823 return lineObj = getLine(doc, l);
4824 }
4825 function moveOnce(boundToLine) {
4826 var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);
4827 if (next == null) {

Callers 1

moveOnceFunction · 0.70

Calls 1

getLineFunction · 0.70

Tested by

no test coverage detected