mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
Fix block range coalescing not working in algorithm.c
This commit is contained in:
@@ -292,19 +292,15 @@ func (r *rsync) ApplyDelta(output io.Writer, target io.ReadSeeker, op Operation)
|
||||
switch op.Type {
|
||||
case OpBlockRange:
|
||||
for i := op.BlockIndex; i <= op.BlockIndexEnd; i++ {
|
||||
err = write_block(Operation{
|
||||
if err = write_block(Operation{
|
||||
Type: OpBlock,
|
||||
BlockIndex: i,
|
||||
})
|
||||
if err != nil {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
case OpBlock:
|
||||
err = write_block(op)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return write_block(op)
|
||||
case OpData:
|
||||
return write(op.Data)
|
||||
case OpHash:
|
||||
|
||||
Reference in New Issue
Block a user