Add sane defaults to TextPatcher diffs

This commit is contained in:
ansuz committed 2016-04-13 14:51:15 +02:00
1 parent 259772dd62
commit f4c5b2a996
1 file changed
+2 -2
+2 -2
View File
@@ -23,8 +23,8 @@ var diff = function (oldval, newval) {
commonEnd++;
}
var toRemove;
var toInsert;
var toRemove = 0;
var toInsert = '';
/* throw some assertions in here before dropping patches into the realtime */
if (oldval.length !== commonStart + commonEnd) {