From 016ede38d169c665fdc899ba688dc4ef52cd45d3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 13 May 2014 19:45:32 +0100 Subject: [PATCH] Fix show_matching highlighter when opening char is the first buffer char Fixes #119 --- src/highlighters.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index 4c9757c6..d0858eed 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -495,7 +495,7 @@ void show_matching_char(const Context& context, HighlightFlags flags, DisplayBuf return false; return true; }); - if (it != end) + if (it != end or (*end == pair.first and level == 1)) highlight_range(display_buffer, it.coord(), (it+1).coord(), false, [&](DisplayAtom& atom) { atom.colors = colors; }); break;