Merge faces in show_whitespaces highlighter instead of replacing it

This commit is contained in:
Maxime Coste 2017-03-21 18:17:43 +00:00
parent 8b1078e510
commit 777ba287e1

View File

@ -721,7 +721,7 @@ void show_whitespaces(const Context& context, HighlightFlags flags, DisplayBuffe
atom_it->replace(lf.str()); atom_it->replace(lf.str());
else if (cp == 0xA0) else if (cp == 0xA0)
atom_it->replace(nbsp.str()); atom_it->replace(nbsp.str());
atom_it->face = whitespaceface; atom_it->face = merge_faces(atom_it->face, whitespaceface);
break; break;
} }
} }