@@ -20,7 +20,7 @@ use helix_core::{
2020use helix_view::{
2121 document::{Mode, SCRATCH_BUFFER_NAME},
2222 editor::{CompleteAction, CursorShapeConfig},
23− graphics::{CursorKind, Modifier, Rect, Style},
23+ graphics::{Color, CursorKind, Modifier, Rect, Style},
2424 input::KeyEvent,
2525 keyboard::{KeyCode, KeyModifiers},
2626 Document, Editor, Theme, View,
@@ -170,7 +170,9 @@ impl EditorView {
170170 theme: &Theme,
171171 ) {
172172 let editor_rulers = &editor.config().rulers;
173− let ruler_theme = theme.get("ui.virtual.ruler");
173+ let ruler_theme = theme
174+ .try_get("ui.virtual.ruler")
175+ .unwrap_or_else(|| Style::default().bg(Color::Red));
174176
175177 let rulers = doc
176178 .language_config()