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