mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +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.
|
// All actions start with the tag.
|
||||||
try writer.print("{s}", .{@tagName(self)});
|
try writer.print("{s}", .{@tagName(self)});
|
||||||
|
|
||||||
// Write the value depending on the type
|
// Only write the value depending on the type if it's not void
|
||||||
|
if (@TypeOf(value) != void) {
|
||||||
try writer.writeAll(":");
|
try writer.writeAll(":");
|
||||||
try formatValue(writer, value);
|
try formatValue(writer, value);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user