Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default rulers color to red #2669

Merged
merged 6 commits into from
Jun 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Prefer unwrap_or_else
  • Loading branch information
Mathspy committed Jun 12, 2022
commit 0b45660aab1e23c241b2b9a6cd9413b97b174854
5 changes: 3 additions & 2 deletions helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ impl EditorView {
theme: &Theme,
) {
let editor_rulers = &editor.config().rulers;
let default_style = Style::default().bg(Color::Red);
let ruler_theme = theme.try_get("ui.virtual.ruler").unwrap_or(default_style);
let ruler_theme = theme
.try_get("ui.virtual.ruler")
.unwrap_or_else(|| Style::default().bg(Color::Red));

let rulers = doc
.language_config()
Expand Down