op is ok, if it doesnt include newlines. op is ok, if op.lines is equal to newlines in op.chars
parent
51c14d9947
commit
3354b9406b
|
@ -929,7 +929,7 @@ exports.applyToText = function (cs, str) {
|
||||||
removedLines += op.lines;
|
removedLines += op.lines;
|
||||||
newlines = strIter.newlines()
|
newlines = strIter.newlines()
|
||||||
strIter.skip(op.chars);
|
strIter.skip(op.chars);
|
||||||
if(!(newlines - strIter.newlines() == op.lines)){
|
if(!(newlines - strIter.newlines() == 0) && (newlines - strIter.newlines() != op.lines)){
|
||||||
newlinefail = true
|
newlinefail = true
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue