(cm, lineView)
| 47 | // Wrapper around buildLineContent which will reuse the structure |
| 48 | // in display.externalMeasured when possible. |
| 49 | function getLineContent(cm, lineView) { |
| 50 | let ext = cm.display.externalMeasured |
| 51 | if (ext && ext.line == lineView.line) { |
| 52 | cm.display.externalMeasured = null |
| 53 | lineView.measure = ext.measure |
| 54 | return ext.built |
| 55 | } |
| 56 | return buildLineContent(cm, lineView) |
| 57 | } |
| 58 | |
| 59 | // Redraw the line's text. Interacts with the background and text |
| 60 | // classes because the mode may output tokens that influence these |
no test coverage detected