Fix block range coalescing not working in algorithm.c

This commit is contained in:
Kovid Goyal
2023-07-25 08:11:49 +05:30
parent aff7f19580
commit d0490672e1
2 changed files with 4 additions and 8 deletions

View File

@@ -672,7 +672,7 @@ enqueue(Differ *self, Operation op) {
}
break;
case OpBlockRange:
if (self->pending_op.block_index+1 == op.block_index) {
if (self->pending_op.block_index_end+1 == op.block_index) {
self->pending_op.block_index_end = op.block_index;
return true;
}