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