op is ok, if it doesnt include newlines. op is ok, if op.lines is equal to newlines in op.chars

pull/2405/head
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; 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;