feat: let mini modes inherit gutter line number modes
This commit is contained in:
parent
eb569157a8
commit
ec3bba2aff
3 changed files with 30 additions and 12 deletions
|
@ -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" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue