(line, span)
| 4070 | return r; |
| 4071 | } |
| 4072 | function addMarkedSpan(line, span) { |
| 4073 | line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span]; |
| 4074 | span.marker.attachLine(line); |
| 4075 | } |
| 4076 | |
| 4077 | function markedSpansBefore(old, startCh, isInsert) { |
| 4078 | if (old) for (var i = 0, nw; i < old.length; ++i) { |