Really fixed RFS length patch bug and ob_indel processing.

This commit is contained in:
gardners 2012-04-16 06:18:34 +09:30
parent e7e8b2d630
commit 2a67153613

View File

@ -277,7 +277,7 @@ int ob_indel_space(overlay_buffer *b,int offset,int shift)
if (ob_makespace(b,-shift)) return -1;
bcopy(&b->bytes[offset],&b->bytes[offset+shift],b->length-(offset+shift));
} else if (shift<0) { /* free up space */
bcopy(&b->bytes[offset],&b->bytes[offset+shift],b->length-(offset-shift));
bcopy(&b->bytes[offset-shift],&b->bytes[offset],b->length-(offset-shift));
}
b->length+=shift;
return 0;