BA 1461 then BA 668 at Heathrow
Edinburgh → London → Marrakesh
Timetable, London time
08:05BA 1461 from Edinburgh at the gate
06:05BA 668 to Marrakesh leaves the gate
22 h apart on the timetable, overnight
BA 668 leaves 22 h after BA 1461 arrives on the timetable: more than half a day, so not a connection we count.