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

Function getLineContent

external/.scrollLibs.js:3353–3361  ·  view source on GitHub ↗
(cm, lineView)

Source from the content-addressed store, hash-verified

3351 // Wrapper around buildLineContent which will reuse the structure
3352 // in display.externalMeasured when possible.
3353 function getLineContent(cm, lineView) {
3354 var ext = cm.display.externalMeasured
3355 if (ext && ext.line == lineView.line) {
3356 cm.display.externalMeasured = null
3357 lineView.measure = ext.measure
3358 return ext.built
3359 }
3360 return buildLineContent(cm, lineView)
3361 }
3362
3363 // Redraw the line's text. Interacts with the background and text
3364 // classes because the mode may output tokens that influence these

Callers 2

updateLineTextFunction · 0.85
buildLineElementFunction · 0.85

Calls 1

buildLineContentFunction · 0.85

Tested by

no test coverage detected