MCPcopy
hub / github.com/witheve/Eve / isBoundary

Function isBoundary

src/codemirror.js:12760–12763  ·  view source on GitHub ↗
(i, dir, any)

Source from the content-addressed store, hash-verified

12758 var start, end, i = line;
12759 function isEmpty(i) { return !cm.getLine(i); }
12760 function isBoundary(i, dir, any) {
12761 if (any) { return isEmpty(i) != isEmpty(i + dir); }
12762 return !isEmpty(i) && isEmpty(i + dir);
12763 }
12764 if (dir) {
12765 while (min <= i && i <= max && repeat > 0) {
12766 if (isBoundary(i, dir)) { repeat--; }

Callers 1

findParagraphFunction · 0.85

Calls 1

isEmptyFunction · 0.85

Tested by

no test coverage detected