From ac5bc7e95dfe67ddff309bc57be4a9617ce1faef Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 15 Dec 2015 02:22:29 +0000 Subject: [PATCH] Add missing erasing of invalid line flags --- src/highlighters.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/highlighters.cc b/src/highlighters.cc index aba0079d..c88f078d 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -940,6 +940,7 @@ HighlighterAndId create_flag_lines_highlighter(HighlighterParameters params) *ins_pos = std::move(*it); ++ins_pos; } + lines.erase(ins_pos, lines.end()); line_flags.timestamp = buffer.timestamp(); }