From 77408becbd0ce84d22d6d0fd5bb1a47be824d559 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 30 Sep 2015 00:18:37 +0100 Subject: [PATCH] Fix removing shared highlighters --- src/commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index 12534798..14a0353b 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -625,7 +625,7 @@ const CommandDesc rm_highlighter_cmd = { StringView path = parser[0]; auto sep_it = find(reversed(path), '/'); auto& group = sep_it != path.rend() ? - get_highlighter(context, {path.begin(), sep_it.base()-1}) + get_highlighter(context, {path.begin(), sep_it.base()}) : context.window().highlighters(); group.remove_child({sep_it.base(), path.end()});