feat: let mini modes inherit gutter line number modes

This commit is contained in:
CJ van den Berg 2025-02-20 20:51:09 +01:00
parent eb569157a8
commit ec3bba2aff
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 30 additions and 12 deletions

View file

@ -590,7 +590,7 @@ const cmds = struct {
if (self.widgets.get("editor_gutter")) |gutter_widget| {
const gutter = gutter_widget.dynamic_cast(@import("editor_gutter.zig")) orelse return;
gutter.linenum = ln;
gutter.relative = lnr;
gutter.mode = if(lnr) .relative else null;
}
}
pub const gutter_mode_next_meta = .{ .description = "Next gutter mode" };