(doc, change)
| 5321 | } |
| 5322 | |
| 5323 | function historyChangeFromChange(doc, change) { |
| 5324 | var from = { line: change.from.line, ch: change.from.ch }; |
| 5325 | var histChange = {from: from, to: changeEnd(change), text: getBetween(doc, change.from, change.to)}; |
| 5326 | attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); |
| 5327 | linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true); |
| 5328 | return histChange; |
| 5329 | } |
| 5330 | |
| 5331 | function addToHistory(doc, change, selAfter, opId) { |
| 5332 | var hist = doc.history; |
no test coverage detected