From 3044eff3569691ee54bfda9f585a6123625a30ca Mon Sep 17 00:00:00 2001 From: pierroelmito Date: Sat, 30 Apr 2016 11:59:53 +0200 Subject: [PATCH] fix whitespace label The author of this work hereby waives all claim of copyright (economic and moral) in this work and immediately places it in the public domain; it may be used, distorted or destroyed in any manner whatsoever without further attribution or notice to the creator --- src/face_registry.cc | 2 +- src/highlighters.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/face_registry.cc b/src/face_registry.cc index 644802df..a8fd0d8a 100644 --- a/src/face_registry.cc +++ b/src/face_registry.cc @@ -121,7 +121,7 @@ FaceRegistry::FaceRegistry() { "Prompt", Face{ Color::Yellow, Color::Default } }, { "MatchingChar", Face{ Color::Default, Color::Default, Attribute::Bold } }, { "BufferPadding", Face{ Color::Blue, Color::Default } }, - { "WhiteSpace", Face{ Color::Default, Color::Default } }, + { "Whitespace", Face{ Color::Default, Color::Default } }, } {} diff --git a/src/highlighters.cc b/src/highlighters.cc index 70ba867d..eaa19567 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -683,7 +683,7 @@ void expand_tabulations(const Context& context, HighlightFlags flags, DisplayBuf void show_whitespaces(const Context& context, HighlightFlags flags, DisplayBuffer& display_buffer, BufferRange) { const int tabstop = context.options()["tabstop"].get(); - auto whitespaceface = get_face("WhiteSpace"); + auto whitespaceface = get_face("Whitespace"); auto& buffer = context.buffer(); for (auto& line : display_buffer.lines()) {