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

Function insertLineWidgets

external/.scrollLibs.js:3467–3474  ·  view source on GitHub ↗
(cm, lineView, dims)

Source from the content-addressed store, hash-verified

3465 // A lineView may contain multiple logical lines (when merged by
3466 // collapsed spans). The widgets for all of them need to be drawn.
3467 function insertLineWidgets(cm, lineView, dims) {
3468 insertLineWidgetsFor(cm, lineView.line, lineView, dims, true)
3469 if (lineView.rest) {
3470 for (var i = 0; i < lineView.rest.length; i++) {
3471 insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false)
3472 }
3473 }
3474 }
3475
3476 function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {
3477 if (!line.widgets) {

Callers 2

updateLineWidgetsFunction · 0.85
buildLineElementFunction · 0.85

Calls 1

insertLineWidgetsForFunction · 0.85

Tested by

no test coverage detected