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

Function getWrappedLineExtent

external/.scrollLibs.js:9398–9404  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

9396 }
9397 var prep
9398 var getWrappedLineExtent = function (ch) {
9399 if (!cm.options.lineWrapping) {
9400 return { begin: 0, end: line.text.length }
9401 }
9402 prep = prep || prepareMeasureForLine(cm, line)
9403 return wrappedLineExtentChar(cm, line, prep, ch)
9404 }
9405 var wrappedLineExtent = getWrappedLineExtent(start.sticky == "before" ? mv(start, -1) : start.ch)
9406
9407 if (cm.doc.direction == "rtl" || part.level == 1) {

Callers 1

moveVisuallyFunction · 0.85

Calls 2

prepareMeasureForLineFunction · 0.85
wrappedLineExtentCharFunction · 0.85

Tested by

no test coverage detected