Dear Bingley: Sounds to me as though the Captain goofed in not "clapping" Edgar into irons for mutiny before using his pistol. In early days of sailing, captains had great power.
Remember the "Billy Budd" I think it is Hermann Melville,
mildly retarded seaman hung for striking an abusive
mate, I think it was, so long ago that I read it.