From e314755e4b7ccede096c351d03b66c34988ab67e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 10 Feb 2025 10:38:11 +0530 Subject: [PATCH] ... --- kitty/decorations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/decorations.c b/kitty/decorations.c index 3efda1ef5..8c8586fb8 100644 --- a/kitty/decorations.c +++ b/kitty/decorations.c @@ -151,7 +151,7 @@ add_curl_underline(uint8_t *buf, FontCellMetrics fcm) { // Ensure curve doesn't exceed cell boundary at the bottom position += half_height * 2; - if (position + half_height > max_y) position = max_y - half_height; + if (position + half_height > fcm.cell_height) position = fcm.cell_height - half_height; unsigned miny = fcm.cell_height, maxy = 0; // Use the Wu antialias algorithm to draw the curve