Highlight line number of stack pointer

This commit is contained in:
Dmitry Sharshakov 2021-08-21 14:58:05 +03:00
parent 5f5b383979
commit 56bddb12f8
No known key found for this signature in database
GPG key ID: 471FD32E15FD8473

View file

@ -488,7 +488,11 @@ impl EditorView {
.unwrap_or(false)
&& sp.line == line
{
surface.set_stringn(viewport.x, viewport.y + i as u16, "", 1, warning);
surface.set_style(
Rect::new(viewport.x, viewport.y + i as u16, 6, 1),
helix_view::graphics::Style::default()
.bg(helix_view::graphics::Color::LightYellow),
);
}
}
}