aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorAndrew J. Hesford <ajh@sideband.org>2024-08-14 14:35:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-08-20 05:07:29 +0000
commit1969717527a956483ba1c37aab3fcf7e8560e26a (patch)
treefb801a405a2151ec18357a86b4333fa2dff9cdc1 /config.c
parentrender: follow cursor.unfocused-style regardless of cursor.style (diff)
feature: add resize-keep-grid to allow text reflow on font changes
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.c b/config.c
index 1ec73da0..a80a26b4 100644
--- a/config.c
+++ b/config.c
@@ -931,6 +931,9 @@ parse_section_main(struct context *ctx)
else if (streq(key, "resize-by-cells"))
return value_to_bool(ctx, &conf->resize_by_cells);
+ else if (streq(key, "resize-keep-grid"))
+ return value_to_bool(ctx, &conf->resize_keep_grid);
+
else if (streq(key, "bold-text-in-bright")) {
if (streq(value, "palette-based")) {
conf->bold_in_bright.enabled = true;
@@ -3101,6 +3104,7 @@ config_load(struct config *conf, const char *conf_path,
.pad_x = 0,
.pad_y = 0,
.resize_by_cells = true,
+ .resize_keep_grid = true,
.resize_delay_ms = 100,
.bold_in_bright = {
.enabled = false,