Oil prices edged up on Thursday following losses in the prior session as worries about Middle East supplies amid attacks on shipping in the Strait of Hormuz pushed ‌up against expectations for a market surplus.