Unnamed repository; edit this file 'description' to name the repository.
Only draw cursorline in the currently focused buffer
Blaž Hrastnik 2022-06-27
parent 425de09 · commit fde9e03
-rw-r--r--helix-term/src/ui/editor.rs2
1 files changed, 1 insertions, 1 deletions
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);
}