From dcfb5e15f2d77c1d21dcbdd7331d907fa0e60127 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 24 Nov 2011 19:13:38 +0000 Subject: [PATCH] SelectionHighlighter: highlight end of lines in selection --- src/filters.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/filters.cc b/src/filters.cc index a4c03d73..8aa3399a 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -266,6 +266,12 @@ public: else assert(false); } + + boost::regex ex("\n"); + for (auto& sel : sorted_selections) + colorize_regex_range(display_buffer, sel.begin(), sel.end(), + ex, Color::Default, Color::Yellow); + } static FilterAndId create(Window& window,