From c5e2889369f979896e479ddec3d81dadbb4c5757 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 3 Aug 2024 09:50:39 -0700 Subject: [PATCH] config: clarify comment --- src/config/Config.zig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index e8580f404..fb5722fec 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -2222,9 +2222,16 @@ pub fn finalize(self: *Config) !void { // always the URL matcher. if (!self.@"link-url") self.link.links.items = self.link.links.items[1..]; + // We warn when the quit-after-last-window-closed-delay is set to a very + // short value because it can cause Ghostty to quit before the first + // window is even shown. if (self.@"quit-after-last-window-closed-delay") |duration| { - if (duration.duration < 5 * std.time.ns_per_s) - log.warn("quit-after-last-window-closed-delay is set to a very short value ({}), which might cause problems", .{duration}); + if (duration.duration < 5 * std.time.ns_per_s) { + log.warn( + "quit-after-last-window-closed-delay is set to a very short value ({}), which might cause problems", + .{duration}, + ); + } } }