renderer/size: move PaddingBalance enum out of Config

Previously WindowPaddingBalance was defined inside Config.zig, which
meant tests for renderer sizing had to pull in the full config
dependency. Move the enum into renderer/size.zig as PaddingBalance
and re-export it from Config so the public API is unchanged. This
lets size.zig tests run without depending on Config.
This commit is contained in:
Mitchell Hashimoto
2026-03-23 09:14:26 -07:00
parent 7253668ec2
commit f60587ffcc
2 changed files with 15 additions and 8 deletions

View File

@@ -39,6 +39,7 @@ pub const Path = @import("path.zig").Path;
pub const RepeatablePath = @import("path.zig").RepeatablePath;
const ClipboardCodepointMap = @import("ClipboardCodepointMap.zig");
const KeyRemapSet = @import("../input/key_mods.zig").RemapSet;
pub const WindowPaddingBalance = @import("../renderer/size.zig").PaddingBalance;
const string = @import("string.zig");
// We do this instead of importing all of terminal/main.zig to
@@ -5245,12 +5246,6 @@ pub const Fullscreen = enum(c_int) {
@"non-native-padded-notch",
};
pub const WindowPaddingBalance = enum {
false,
true,
equal,
};
pub const WindowPaddingColor = enum {
background,
extend,