From c191a8716ebee37f61cdd4b07aff41f52e90c604 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Sat, 14 Feb 2015 16:41:50 +0100 Subject: totally wrong, introduced by myself in 3354b9406b94e1a04b5eee1c0152914dde73ba89 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 --- src/static/js/Changeset.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/static/js/Changeset.js b/src/static/js/Changeset.js index 32da887d..fd658f86 100644 --- a/src/static/js/Changeset.js +++ b/src/static/js/Changeset.js @@ -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; -- cgit v1.2.3