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:
webzwo0i 2014-12-16 12:29:33 +01:00
parent 51c14d9947
commit 3354b9406b
1 changed files with 1 additions and 1 deletions

View File

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