EA-40521: due to usage of cyclic buffer old text can be dropped and we should recalculate highlighting offsets in this case