mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
very small style change
This commit is contained in:
@ -2717,8 +2717,8 @@ pub const Keybinds = struct {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Used by Formatter
|
/// Like formatEntry but has an option to include docs.
|
||||||
pub fn formatEntryDocs(self: Keybinds, docs: bool, formatter: anytype) !void {
|
pub fn formatEntryDocs(self: Keybinds, formatter: anytype, docs: bool) !void {
|
||||||
if (self.set.bindings.size == 0) {
|
if (self.set.bindings.size == 0) {
|
||||||
try formatter.formatEntry(void, {});
|
try formatter.formatEntry(void, {});
|
||||||
return;
|
return;
|
||||||
@ -2746,6 +2746,7 @@ pub const Keybinds = struct {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try formatter.formatEntry(
|
try formatter.formatEntry(
|
||||||
[]const u8,
|
[]const u8,
|
||||||
std.fmt.bufPrint(
|
std.fmt.bufPrint(
|
||||||
@ -2757,6 +2758,7 @@ pub const Keybinds = struct {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Used by Formatter
|
||||||
pub fn formatEntry(self: Keybinds, formatter: anytype) !void {
|
pub fn formatEntry(self: Keybinds, formatter: anytype) !void {
|
||||||
try self.formatEntryDocs(false, formatter);
|
try self.formatEntryDocs(false, formatter);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user