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