From 0ba3edaf3d22a9dd08662fc97cc6838c25584c27 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 26 Jan 2024 09:01:27 -0800 Subject: [PATCH] very small style change --- src/config/Config.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index cf80a38ab..8a20dda41 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -2717,8 +2717,8 @@ pub const Keybinds = struct { return true; } - /// Used by Formatter - pub fn formatEntryDocs(self: Keybinds, docs: bool, formatter: anytype) !void { + /// Like formatEntry but has an option to include docs. + pub fn formatEntryDocs(self: Keybinds, formatter: anytype, docs: bool) !void { if (self.set.bindings.size == 0) { try formatter.formatEntry(void, {}); return; @@ -2746,6 +2746,7 @@ pub const Keybinds = struct { } } } + try formatter.formatEntry( []const u8, std.fmt.bufPrint( @@ -2757,6 +2758,7 @@ pub const Keybinds = struct { } } + /// Used by Formatter pub fn formatEntry(self: Keybinds, formatter: anytype) !void { try self.formatEntryDocs(false, formatter); }