Higher July inflation, posted on Wednesday, also contributed to the investors' optimism.
Market participants have also been trimming their expectations of further weakness in the pound, judging by prices in the derivatives market.
However, analysts say it is unlikely that sterling will rise much further given the growing risk of Britain crashing out of the European Union without a divorce deal in October.
Retail sales went up by 0.2pc month-on-month in July, a smaller increase than in June, when they rose by 0.9pc, but higher than a Reuters poll was forecasting, which was a 0.2pc fall.
The month-on-month increase in June was revised down from 1pc. Year-on-year sales went up by 3.3pc compared with a 3.8pc rise in the previous month.
Marshall Gittler, chief strategist at ACLS Global, said the slowdown in sales "suggests to me that consumers are getting nervous ahead of Brexit," adding that this should be negative for the pound.
This week inflation rose unexpectedly to 2.1pc in July, which could have prompted the Bank of England to signal interest rate rises, but this time it "will likely prove insufficient to support the pound much above the 1.2050 level," said Fritz Louw, a currency analyst at MUFG.
The pound was last up by 0.4pc at $1.2107, having touched briefly a one-week high of $1.2113 earlier, but remains close to the 31-month low of $1.2015 it reached on Monday.
Against the euro, the pound was up by 0.2pc at 92.14 pence, retreating from the 10-year low of 93.26 pence it plunged to on Monday.
The cost of protection against unexpected moves in the currency, seen in the three-month options pricing, eased a bit from a seven-month high. Three-month risk reversals, which encapsulate the Brexit deadline, paint a similar picture.
The small uptick came from the news that opposition leader Jeremy Corbyn has started to gather support for a no-confidence vote in the current government.
This was seen by some investors as confirmation that parliament is ready to do all it can to avert a no-deal Brexit. Though most analysts still see a no-deal exit more likely.
Johnson has promised to take Britain out of the European Union by Oct. 31, with or without a deal, setting the scene for a showdown in parliament where lawmakers are opposed to a divorce without a transition agreement.