Marc McNulty struck deep into stoppage time against Partick to earn Livingston a 2-2 draw at the Almondvale Stadium.
Jags striker Kris Doolan opened the scoring after 25 minutes when he diverted Steven Craig's cross past Andrew McNeil from a narrow angle.
The hosts were back level four minutes later thanks to a long-range strike from Anthony Andreu which Graeme Smith was unable to keep out.
Jackie McNamara's men restored their advantage as Steven Craig powered Aaron Sinclair's cross into the roof of the net just three minutes later.
Livi pressed for a late equaliser and were unlucky not to draw level when Jordan Morton's 87th-minute free-kick curled against the crossbar.
Sean Welsh was then shown a red card for a tackle on Andreu before McNulty grabbed a last-gasp leveller to extend promotion-chasing Partick's winless league streak to three games.