From 7423677236231a2b9dd08de6500455d0ccc43c81 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 15 Nov 2011 14:28:03 +0000 Subject: [PATCH] Filters: cleanup trailing whitespaces detected with ':addfilter regex \h+\n default red' ! --- src/filters.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filters.cc b/src/filters.cc index ea648463..1b75fbe7 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -73,8 +73,8 @@ FilterAndId colorize_regex_factory(Window& window, Color fg_color = parse_color(params[1]); Color bg_color = parse_color(params[2]); - std::string id = "colre'" + params[0] + "'"; - + std::string id = "colre'" + params[0] + "'"; + return FilterAndId(id, std::bind(colorize_regex, std::placeholders::_1, ex, fg_color, bg_color)); } @@ -270,7 +270,7 @@ private: void register_filters() { FilterRegistry& registry = FilterRegistry::instance(); - + registry.register_factory("highlight_selections", SelectionsHighlighter::create); registry.register_factory("expand_tabs", SimpleFilterFactory("expand_tabs")); registry.register_factory("number_lines", SimpleFilterFactory("number_lines"));