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 6fbb9b7d3b
commit 6a68b432ae
3 changed files with 106 additions and 0 deletions

View file

@ -977,6 +977,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);
@ -3455,6 +3458,7 @@ config_load(struct config *conf, const char *conf_path,
},
.pad_x = 0,
.pad_y = 0,
.pad_extend = false,
.center_when = CENTER_MAXIMIZED_AND_FULLSCREEN,
.resize_by_cells = true,
.resize_keep_grid = true,