From fde9e034d4a7bd16d3c9780600874323e4e91628 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 27 Jun 2022 17:51:22 +0900 Subject: Only draw cursorline in the currently focused buffer --- 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 2f44dae9..f71f716e 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -112,7 +112,7 @@ impl EditorView { } } - if editor.config().cursorline { + if is_focused && editor.config().cursorline { Self::highlight_cursorline(doc, view, surface, theme); } -- cgit v1.2.3-70-g09d2