A lawsuit claims that a man detained at a Horry County jail was attacked by an inmate waiting for pre-trial hearing.