Only draw cursorline in the currently focused buffer
commitfde9e034d4a7bd16d3c9780600874323e4e91628
authorBlaž Hrastnik <blaz@mxxn.io>
dateMon 27 Jun 2022, 17:51 (4 years ago)
parent425de09
helix-term/src/ui/editor.rs+1−1
@@ -112,7 +112,7 @@ impl EditorView {
112112 }
113113 }
114114
115− if editor.config().cursorline {
115+ if is_focused && editor.config().cursorline {
116116 Self::highlight_cursorline(doc, view, surface, theme);
117117 }
118118