Skip to content

Commit ab28d49

Browse files
committed
fix missing index update/mocha test
1 parent e0b94cf commit ab28d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/model.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ exports.ModelUpdate.prototype.apply = function(view, skipCheck) {
106106
apply(ModelUpdateInsert, src, src_n - dst_n)
107107
break
108108
} else if (dst === src) {
109-
apply(row[1]? ModelUpdateUpdate: ModelUpdateNothing, src)
109+
apply(row[1] || offset !== 0? ModelUpdateUpdate: ModelUpdateNothing, src)
110110
if (offset !== 0)
111111
view._updateDelegateIndex(src)
112112
++src

0 commit comments

Comments
 (0)