Fix comment in draw_separated_block

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/0e5a33d1-c34e-4e8a-b161-7469ab770c05

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-11 04:28:28 +00:00 committed by GitHub
parent 76c76381b8
commit 5f01076daa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1535,7 +1535,7 @@ fill_rect(Canvas *self, uint x_start, uint y_start, uint x_end, uint y_end) {
static void
draw_separated_block(Canvas *self, uint num_cols, uint num_rows, uint which) {
// Each "separated" block is drawn with a small gap around it.
// Use approximately 1/8 of the cell dimensions as the gap.
// Use 1/8 of the cell dimensions as the gap (at least 1 pixel).
uint gap_x = max(1u, self->width / 8u);
uint gap_y = max(1u, self->height / 8u);
uint total_gap_x = (num_cols + 1) * gap_x;