Add pad-extend option

Adds a new boolean option `pad-extend` that extends edge cell
background colors into the terminal padding/margins, similar to
Ghostty's behavior. When enabled, the left/right margins use the
background color of the adjacent edge cells, and top/bottom margins
use the colors of the first/last row cells.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
txf 2026-01-28 19:02:26 +00:00
parent f49fdf7ca3
commit 6bb0eb1dd3
4 changed files with 118 additions and 15 deletions

View file

@ -994,6 +994,9 @@ parse_section_main(struct context *ctx)
return true;
}
else if (streq(key, "pad-extend"))
return value_to_bool(ctx, &conf->pad_extend);
else if (streq(key, "resize-delay-ms"))
return value_to_uint16(ctx, 10, &conf->resize_delay_ms);
@ -3478,6 +3481,7 @@ config_load(struct config *conf, const char *conf_path,
.pad_top = 0,
.pad_right = 0,
.pad_bottom = 0,
.pad_extend = false,
.center_when = CENTER_MAXIMIZED_AND_FULLSCREEN,
.resize_by_cells = true,
.resize_keep_grid = true,