mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
don't write ":" when printing keybinding action with no argument
This commit is contained in:
@ -398,9 +398,11 @@ pub const Action = union(enum) {
|
||||
// All actions start with the tag.
|
||||
try writer.print("{s}", .{@tagName(self)});
|
||||
|
||||
// Write the value depending on the type
|
||||
try writer.writeAll(":");
|
||||
try formatValue(writer, value);
|
||||
// Only write the value depending on the type if it's not void
|
||||
if (@TypeOf(value) != void) {
|
||||
try writer.writeAll(":");
|
||||
try formatValue(writer, value);
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user