(code, from, to, computeSel)
| 1005 | }); |
| 1006 | } |
| 1007 | function replaceRange1(code, from, to, computeSel) { |
| 1008 | var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length; |
| 1009 | var newSel = computeSel({line: from.line + code.length - 1, ch: endch}); |
| 1010 | updateLines(from, to, code, newSel.from, newSel.to); |
| 1011 | } |
| 1012 | |
| 1013 | function getRange(from, to) { |
| 1014 | var l1 = from.line, l2 = to.line; |
no test coverage detected