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;
|
break;
|
||||||
case '-':
|
case '-':
|
||||||
removedLines += op.lines;
|
removedLines += op.lines;
|
||||||
newlines = strIter.newlines()
|
|
||||||
strIter.skip(op.chars);
|
strIter.skip(op.chars);
|
||||||
if(!(newlines - strIter.newlines() == 0) && (newlines - strIter.newlines() != op.lines)){
|
|
||||||
newlinefail = true
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case '=':
|
case '=':
|
||||||
newlines = strIter.newlines()
|
newlines = strIter.newlines()
|
||||||
assem.append(strIter.take(op.chars));
|
assem.append(strIter.take(op.chars));
|
||||||
if(!(newlines - strIter.newlines() == op.lines)){
|
if(newlines - strIter.newlines() != op.lines){
|
||||||
newlinefail = true
|
newlinefail = true
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue