aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-06-27 08:51:22 +0000
committerBlaž Hrastnik2022-06-27 08:51:22 +0000
commitfde9e034d4a7bd16d3c9780600874323e4e91628 (patch)
tree10aaa2921ce127e581c81ef138f60e42488195c0 /helix-term/src/ui
parent425de09d217002d3b7c6cad864015277cfe041a1 (diff)
Only draw cursorline in the currently focused buffer
Diffstat (limited to 'helix-term/src/ui')
-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);
}