From 5aa351412212d0db86f792368a1adc82456c303a Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Wed, 5 Apr 2023 12:49:03 -0700 Subject: [PATCH] config: add confirm-close-surface --- src/config.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.zig b/src/config.zig index c7b55060c..6d75e4e11 100644 --- a/src/config.zig +++ b/src/config.zig @@ -164,6 +164,10 @@ pub const Config = struct { /// Additional configuration files to read. @"config-file": RepeatableString = .{}, + // Confirms that a surface should be closed before closing it. This defaults + // to true. If set to false, surfaces will close without any confirmation. + @"confirm-close-surface": bool = true, + /// This is set by the CLI parser for deinit. _arena: ?ArenaAllocator = null,