@@ -696,6 +696,7 @@ impl EditorView {
696696 let mut offset = 0;
697697
698698 let gutter_style = theme.get("ui.gutter");
699+ let gutter_selected_style = theme.get("ui.gutter.selected");
699700
700701 // avoid lots of small allocations by reusing a text buffer for each line
701702 let mut text = String::with_capacity(8);
@@ -708,6 +709,12 @@ impl EditorView {
708709 let x = viewport.x + offset;
709710 let y = viewport.y + i as u16;
710711
712+ let gutter_style = if selected {
713+ gutter_selected_style
714+ } else {
715+ gutter_style
716+ };
717+
711718 if let Some(style) = gutter(line, selected, &mut text) {
712719 surface.set_stringn(x, y, &text, *width, gutter_style.patch(style));
713720 } else {