BA 1439 then BA 668 at Heathrow
Edinburgh → London → Marrakesh
Timetable, London time
10:15BA 1439 from Edinburgh at the gate
07:45BA 668 to Marrakesh leaves the gate
21 h 30 apart on the timetable, overnight
BA 668 leaves 21 h 30 after BA 1439 arrives on the timetable: more than half a day, so not a connection we count.