From a822bcd6e018dbd851d22969a1f7729ffb00f52f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 11 Feb 2018 17:39:19 +1100 Subject: [PATCH] Do not specify utf8 InvalidPolicy when we are using the default value It was specified only in two call sites, and everywhere now only uses the pass policy, which is the default. --- src/highlighters.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index 86ff9b26..37e1185f 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -954,7 +954,7 @@ void show_whitespaces(HighlightContext context, DisplayBuffer& display_buffer, B for (BufferIterator it = begin; it != end; ) { auto coord = it.coord(); - Codepoint cp = utf8::read_codepoint(it, end); + Codepoint cp = utf8::read_codepoint(it, end); if (cp == '\t' or cp == ' ' or cp == '\n' or cp == 0xA0) { if (coord != begin.coord()) @@ -1204,7 +1204,7 @@ void expand_unprintable(HighlightContext context, DisplayBuffer& display_buffer, end = get_iterator(buffer, atom_it->end()); it < end;) { auto coord = it.coord(); - Codepoint cp = utf8::read_codepoint(it, end); + Codepoint cp = utf8::read_codepoint(it, end); if (cp != '\n' and not iswprint((wchar_t)cp)) { if (coord != atom_it->begin())