Non-breaking spaces highlighted even when "Show whitespace characters" is not selected

I am using RStudio 1.2.5033 on Windows. I am creating R and Rmd files with UTF-8 encoding. I find that whenever I insert a non-breaking space -- Unicode 00A0, equivalent to typing Alt+0160 on your numeric keypad -- the space is represented in the editor by a dot, as it would be if "Show whitespace characters" were enabled. But the dot is red, and it is highlighted in pink. Here is a screenshot:

image

The problem is that these spaces are highlighted even when "Show whitespace characters" is not enabled. What can I do to turn off this kind of highlighting?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.