A 27-year-old man alleged to have carried out an assault within the cells at Selkirk Sheriff Court has been remanded in custody.

When Harrison Long was told he was being remanded pending trial he launched a foul-mouthed tirade from the dock and had to be led downstairs from the dock by security officers.

He had pleaded not guilty to a charge of assaulting Robert Ramsay by punching him to the face to his injury within the court building on June 19.

The Crown objected to Long being released on bail pointing out he was already on four bail orders for various alleged offences.

Defence lawyer Stephanie Clinkscale said her client could be the subject of a home night time curfew at an address in Inchmyre, Kelso, and that the person involved in the alleged assault was a "reluctant" complainer.

When Sheriff Raymond McMenamin refused bail and ordered Long be remanded in custody until the trial date on August 2 he began swearing in the dock protesting at the decision.

An intermediate hearing will take place on July 16 via videolink from Edinburgh Prison.