From b18e6eed3cd4ce567c6952c9b3933eade8647e47 Mon Sep 17 00:00:00 2001 From: Ben LeFevre Date: Mon, 18 Sep 2023 10:00:54 +1000 Subject: [PATCH] feat: use inactive color when entire terminal has lost focus --- helix-term/src/ui/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 433233a0f..a9d8cf135 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -98,7 +98,7 @@ impl EditorView { let text_annotations = view.text_annotations(doc, Some(theme)); let mut decorations = DecorationManager::default(); - if !is_focused { + if !(is_focused && self.terminal_focused) { surface.set_style(area, theme.get("ui.background.inactive")) }