(cm, lineView)
| 791 | // Wrapper around buildLineContent which will reuse the structure |
| 792 | // in display.externalMeasured when possible. |
| 793 | function getLineContent(cm, lineView) { |
| 794 | var ext = cm.display.externalMeasured; |
| 795 | if (ext && ext.line == lineView.line) { |
| 796 | cm.display.externalMeasured = null; |
| 797 | lineView.measure = ext.measure; |
| 798 | return ext.built; |
| 799 | } |
| 800 | return buildLineContent(cm, lineView); |
| 801 | } |
| 802 | |
| 803 | // Redraw the line's text. Interacts with the background and text |
| 804 | // classes because the mode may output tokens that influence these |
no test coverage detected