diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 2f44dae9..f71f716e 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -112,7 +112,7 @@ pub fn render_view( } } - if editor.config().cursorline { + if is_focused && editor.config().cursorline { Self::highlight_cursorline(doc, view, surface, theme); }