Add fallback to ui.statusline

pull/6118/merge^2
SoraTenshi 1 year ago
parent b563f21b3c
commit 88c7710b64

@ -763,8 +763,16 @@ impl EditorView {
let viewport = view.inner_area(doc);
// define sticky context styles
let context_style = theme.get("ui.sticky.context");
let indicator_style = theme.get("ui.sticky.indicator");
let context_style = theme.try_get("ui.sticky.context").unwrap_or(
theme
.try_get("ui.statusline")
.expect("`ui.statusline` exists"),
);
let indicator_style = theme.try_get("ui.sticky.indicator").unwrap_or(
theme
.try_get("ui.statusline")
.expect("`ui.statusline` exists"),
);
let mut context_area = viewport;
context_area.height = 1;

Loading…
Cancel
Save