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

Function getLineContent

static/mergely/lib/codemirror.js:932–940  ·  view source on GitHub ↗
(cm, lineView)

Source from the content-addressed store, hash-verified

930 // Wrapper around buildLineContent which will reuse the structure
931 // in display.externalMeasured when possible.
932 function getLineContent(cm, lineView) {
933 var ext = cm.display.externalMeasured;
934 if (ext && ext.line == lineView.line) {
935 cm.display.externalMeasured = null;
936 lineView.measure = ext.measure;
937 return ext.built;
938 }
939 return buildLineContent(cm, lineView);
940 }
941
942 // Redraw the line's text. Interacts with the background and text
943 // classes because the mode may output tokens that influence these

Callers 2

updateLineTextFunction · 0.70
buildLineElementFunction · 0.70

Calls 1

buildLineContentFunction · 0.70

Tested by

no test coverage detected