summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-09-30 00:18:37 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-09-30 00:18:37 +0100
commit77408becbd0ce84d22d6d0fd5bb1a47be824d559 (patch)
tree394af9cb14c81bb158c8941ec49729b10c270882 /src
parent1ff92d2b674f6f7db9c496f358a2b0ecb7ad94b0 (diff)
Fix removing shared highlighters
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc2
1 files changed, 1 insertions, 1 deletions
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()});