From fab4fa7894067ea975c65b966d175331f2c610a3 Mon Sep 17 00:00:00 2001 From: CedricMeu Date: Fri, 21 Jun 2024 13:37:55 +0200 Subject: [PATCH] Added `ui.bufferline.marker` key to style the underflow and overflow markers --- book/src/themes.md | 3 ++- helix-term/src/ui/editor.rs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/book/src/themes.md b/book/src/themes.md index e3b95c0a7..c205fce5d 100644 --- a/book/src/themes.md +++ b/book/src/themes.md @@ -293,8 +293,9 @@ These scopes are used for theming the editor interface: | `ui.statusline.select` | Statusline mode during select mode ([only if `editor.color-modes` is enabled][editor-section]) | | `ui.statusline.separator` | Separator character in statusline | | `ui.bufferline` | Style for the buffer line | -| `ui.bufferline.active` | Style for the active buffer in buffer line | +| `ui.bufferline.active` | Style for the active buffer in buffer line | | `ui.bufferline.background` | Style for bufferline background | +| `ui.bufferline.marker` | Style for bufferline underflow and overflow markers | | `ui.popup` | Documentation popups (e.g. Space + k) | | `ui.popup.info` | Prompt for multiple key options | | `ui.window` | Borderlines separating splits | diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 1d43fbcda..8f3272d62 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -722,8 +722,8 @@ impl EditorView { // Add under and overflow markers. let markers = editor .theme - .try_get("ui.bufferline") - .unwrap_or_else(|| editor.theme.get("ui.bufferline.active")); + .try_get("ui.bufferline.marker") + .unwrap_or_else(|| editor.theme.get("ui.bufferline")); if mark_underflow { let _ = surface.set_string(viewport.left(), viewport.top(), " < ", markers);