totally wrong, introduced by myself in
3354b9406b
the first part is always false so the second part which is always true
in case a cs deleted some lines was never triggered...sigh
pull/2518/head
parent
e39b442840
commit
c191a8716e
|
@ -927,16 +927,12 @@ exports.applyToText = function (cs, str) {
|
|||
break;
|
||||
case '-':
|
||||
removedLines += op.lines;
|
||||
newlines = strIter.newlines()
|
||||
strIter.skip(op.chars);
|
||||
if(!(newlines - strIter.newlines() == 0) && (newlines - strIter.newlines() != op.lines)){
|
||||
newlinefail = true
|
||||
}
|
||||
break;
|
||||
case '=':
|
||||
newlines = strIter.newlines()
|
||||
assem.append(strIter.take(op.chars));
|
||||
if(!(newlines - strIter.newlines() == op.lines)){
|
||||
if(newlines - strIter.newlines() != op.lines){
|
||||
newlinefail = true
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue