From 0f292d343b17a404f560308d8ac6bf6af52add3a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 25 Oct 2019 15:12:37 +1100 Subject: [PATCH] Use a specific WrapMarker face for wrap highlighter wrapped line marker --- src/face_registry.cc | 1 + src/highlighters.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/face_registry.cc b/src/face_registry.cc index 08b9c8a6..83021060 100644 --- a/src/face_registry.cc +++ b/src/face_registry.cc @@ -162,6 +162,7 @@ FaceRegistry::FaceRegistry() { "LineNumbers", {Face{ Color::Default, Color::Default }} }, { "LineNumberCursor", {Face{ Color::Default, Color::Default, Attribute::Reverse }} }, { "LineNumbersWrapped", {Face{ Color::Default, Color::Default, Attribute::Italic }} }, + { "WrapMarker", {Face{ Color::Blue, Color::Default }} }, { "MenuForeground", {Face{ Color::White, Color::Blue }} }, { "MenuBackground", {Face{ Color::Blue, Color::White }} }, { "MenuInfo", {Face{ Color::Cyan, Color::Default }} }, diff --git a/src/highlighters.cc b/src/highlighters.cc index a8b92c1d..d8a95832 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -673,7 +673,7 @@ struct WrapHighlighter : Highlighter const int tabstop = context.context.options()["tabstop"].get(); const LineCount win_height = context.context.window().dimensions().line; const ColumnCount marker_len = zero_if_greater(m_marker.column_length(), wrap_column); - const Face face_marker = context.context.faces()["StatusLineInfo"]; + const Face face_marker = context.context.faces()["WrapMarker"]; for (auto it = display_buffer.lines().begin(); it != display_buffer.lines().end(); ++it) {