diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-02-11 17:39:19 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-02-11 17:39:19 +1100 |
| commit | a822bcd6e018dbd851d22969a1f7729ffb00f52f (patch) | |
| tree | 29c1c09ab37b9546b88250d30e5d40a47f0a5fca /src | |
| parent | 66fe2d84daa1ec72c2eb1385b1d8da705277403e (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/highlighters.cc | 4 |
1 files 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<utf8::InvalidPolicy::Pass>(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<utf8::InvalidPolicy::Pass>(it, end); + Codepoint cp = utf8::read_codepoint(it, end); if (cp != '\n' and not iswprint((wchar_t)cp)) { if (coord != atom_it->begin()) |
