fix: reset background style when rendering status bar grip

This commit is contained in:
CJ van den Berg 2026-01-22 13:04:54 +01:00
parent 6cff13f74e
commit c04bbe4062
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -33,6 +33,9 @@ fn on_layout(_: ?*anyopaque, w: *WidgetList) Widget.Layout {
fn render_grip(ctx: ?*anyopaque, theme: *const Widget.Theme) void {
const w: *WidgetList = @ptrCast(@alignCast(ctx.?));
if (w.hover()) {
w.plane.cursor_move_yx(0, 0);
w.plane.set_base_style(theme.editor);
_ = w.plane.putstr(" ") catch {};
w.plane.set_style(theme.statusbar_hover);
w.plane.cursor_move_yx(0, 0);
_ = w.plane.putstr("") catch {};