BA 1461 then TP 1351 at Heathrow
Edinburgh → London → Lisbon
Timetable, London time
08:30BA 1461 from Edinburgh at the gate
08:15TP 1351 to Lisbon leaves the gate
23 h 45 apart on the timetable, overnight
TP 1351 leaves 23 h 45 after BA 1461 arrives on the timetable: more than half a day, so not a connection we count.