Andy Murray dug himself out of another hole at Roland Garros to defeat Richard Gasquet and reach his fourth French Open semi-final.
There the world number two will face his biggest test yet against defending champion Stan Wawrinka as he bids to make the final for the first time.
If he is to do so and complete his set of slam finals, he surely cannot afford the same dips that nearly resulted in him being two sets down to Frenchman Gasquet despite having led 5-2 in both.
But, for the umpteenth time in his career, Murray came good just at the right time and ran away with the match in the third and fourth sets to win 5-7 7-6 (7/3) 6-0 6-2 after three hours and 23 minutes.
Having been taken to five sets in his opening two matches by Radek Stepanek and Mathias Bourgue, Murray now stands on the brink of history.
The 29-year-old had won all four of his previous grand slam matches against Gasquet, including twice here, and has a phenomenal record against both Frenchmen and home players at slams.
Murray's only loss against a home player came 10 years ago at Roland Garros against Gael Monfils, while it is eight years and now 27 matches since he was beaten by a French player at one of the majors.
The Scot had expected a red-hot atmosphere, with Gasquet, once the great hope of French tennis, having finally made a quarter-final here at the 13th attempt.
But instead Court Philippe Chatrier was barely a third full when the players walked out, which perhaps contributed to Gasquet's slow start.
It was not great either for Murray, who plays his best tennis when he is fired up, but he eased into a 4-1 lead without really breaking sweat.
As the stands filled up, Gasquet began to find his rhythm, particularly on his stylish single-handed backhand, while Murray's timing was off and his success with the drop shot sporadic at best.
From 5-2 and serving for the set, Murray lost four straight games and found himself needing to break to stay in it.
In a wild game, Murray saved three set points, one with a superb forehand pass, but could not take three break points of his own and, on Gasquet's fourth chance, the Scot netted a backhand.
It was a baffling turn of events, although hardly unprecedented, as Murray had lost the first set in three of their four previous slam meetings.
His eventual success in those matches should have been a source of confidence but Murray was clearly not feeling at ease from the back of the court and kept turning to the drop shot, which more often than not was easy pickings for Gasquet.
Remarkably, the set followed the same pattern, with Murray leading 5-2 only to be pegged back. But crucially he held his serve from 0-30 at 5-5 before Gasquet forced a tie-break.
A double fault from Murray left him down 1-3 but he showed immense strength of character once again to win the next six points and level the match - an achievement met with near total silence.
The French crowd has seen this movie many times before. Despite their strength in depth, they have not witnessed a home winner in the men's singles since Yannick Noah in 1983.
Winning the tie-break restored Murray's lost confidence in his game and soon it was he who was dictating with his backhand.
Gasquet, a man not known for his mental fortitude, could not stem the tide and Murray raced through the third set without losing a game.
Gasquet gave the crowd something to cheer by saving break points to hold at the start of the fourth but that was just about as good as it got.
Djokovic belatedly moves into quarter-final
Novak Djokovic hopes the frustrations endured in his rain-affected win over Roberto Bautista Agut will stand him in good stead for the rest of the French Open.
Having been due to play the fourth-round match on Monday, Djokovic and Bautista Agut eventually took to the court just after midday on Tuesday.
In two bursts they were able to play for a minute over two hours, despite drizzle falling virtually throughout, and Djokovic led 4-1 in the third when finally the day was abandoned.
More leaden skies greeted the players on Wednesday, but it was at least fairly dry and Djokovic eventually ground out a 3-6 6-4 6-1 7-5 victory.
The Serbian appeared to let the conditions get to him in the first set on Tuesday, but, although never finding his best form, he was mentally tuned in thereafter.
Simona Halep and Agnieszka Radwanska were both furious at having been made to play in the rain after losing their fourth-round matches.
Djokovic said: "I remember early in my career I played a match against (Nicolas) Kiefer at Wimbledon for five days. This is probably the second longest.
"Conditions were definitely on the edge throughout the entire day (on Tuesday). Bautista and I played I think more than two sets in the mist. It was literally maybe five to 10 minutes of the entire stay of over one-and-a-half hours we had yesterday on the court without rain.
"But, once you accept the circumstances and the decision is such that you play, then you have to go with it.
"It was a great mental test for all of us. I'm in a way glad to have a match like this, because it's a challenge that you need to overcome.
"The priority should always be the health of the players, no doubt. So I understand the frustrations that some players are going through."
As well as the players, some fans were also unhappy that, because those on Chatrier saw a minute over two hours of play, they are not entitled to any refund, while supporters on other courts will receive 50 per cent.
Bautista Agut fuelled conspiracy theories by saying: "I can understand the view of the tournament. They pushed us to play two hours yesterday."
But tournament director Guy Forget, who is in his debut year in the job, insisted all decisions were taken "with the best of intentions".
He said: "We, the tournament organisers, have been harshly criticised over the past few hours. The way we handled the situation yesterday, while we acted with the best of intentions, has been questioned. I would like to provide some clarification.
"The decision to suspend or resume play lies solely with tournament referee Stefan Fransson. Respect for the game always takes precedence.
"If what we are being accused of were true, it would have been in our best interests as organisers to stop play before the one-hour 59-minute mark as our insurer would have been responsible for ticket reimbursement.
"However, that was not the basis of our decision. Our aim was to play for as long as possible, even if that meant being criticised for playing in difficult conditions.
"I understand that not refunding spectators with tickets to the Philippe Chatrier Court has caused frustration and anger. But can we really change the rules in the middle of the game?"
Djokovic, who becomes the first player to win $100million in prize money, now faces having to play five times in six days, starting with a quarter-final against Tomas Berdych on Thursday.
He does not have a problem with that and is hoping to find his best form, saying: "I'm in the quarter-finals and I dropped one set. So things are going the right way. Of course I know that I can play better and I have a couple more gears."
Berdych only played three games of his fourth-round match against David Ferrer on Tuesday, but was not detained too long in a 6-3 7-5 6-3 victory.
The French Open is now the only grand slam without a single covered court and the proposed roof over Chatrier will not be completed until 2020.
Berdych said: "There is not really an explanation why we cannot have that when the tournament is doing so well and it's such a big event. In the end you don't really see that it's more about players than about the tournament."
The other quarter-final in the top half will be between two first-timers in David Goffin and Dominic Thiem.
Goffin defeated former semi-finalist Ernests Gulbis 4-6 6-2 6-2 6-3, while Thiem was a 6-2 6-7 (2/7) 6-1 6-4 winner over Marcel Granollers