(cm, lineView)
| 913 | // Wrapper around buildLineContent which will reuse the structure |
| 914 | // in display.externalMeasured when possible. |
| 915 | function getLineContent(cm, lineView) { |
| 916 | var ext = cm.display.externalMeasured; |
| 917 | if (ext && ext.line == lineView.line) { |
| 918 | cm.display.externalMeasured = null; |
| 919 | lineView.measure = ext.measure; |
| 920 | return ext.built; |
| 921 | } |
| 922 | return buildLineContent(cm, lineView); |
| 923 | } |
| 924 | |
| 925 | // Redraw the line's text. Interacts with the background and text |
| 926 | // classes because the mode may output tokens that influence these |
no test coverage detected