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
This commit is contained in:
webzwo0i 2015-02-14 16:41:50 +01:00
parent e39b442840
commit c191a8716e

View file

@ -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;