(cm)
| 3123 | // Count the number of lines in the view whose DOM representation is |
| 3124 | // out of date (or nonexistent). |
| 3125 | function countDirtyView(cm) { |
| 3126 | var view = cm.display.view, dirty = 0; |
| 3127 | for (var i = 0; i < view.length; i++) { |
| 3128 | var lineView = view[i]; |
| 3129 | if (!lineView.hidden && (!lineView.node || lineView.changes)) { ++dirty; } |
| 3130 | } |
| 3131 | return dirty |
| 3132 | } |
| 3133 | |
| 3134 | function updateSelection(cm) { |
| 3135 | cm.display.input.showSelection(cm.display.input.prepareSelection()); |
no outgoing calls
no test coverage detected