From 3cbca4955e22177a978a166b4fe934b6a1d0a0b0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 4 Dec 2022 20:48:15 +0530 Subject: [PATCH] ... --- kitty/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/screen.c b/kitty/screen.c index b197837f5..ca5b66f8e 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -3977,7 +3977,7 @@ get_line_edge_colors(Screen *self, color_type *left, color_type *right) { // Return the color at the left and right edges of the line with the cursor on it Line *line = range_line_(self, self->cursor->y); if (!line) return false; - color_type left_cell_fg = 0, left_cell_bg = 0, right_cell_bg = 0, right_cell_fg = 0; + color_type left_cell_fg = OPT(foreground), left_cell_bg = OPT(background), right_cell_bg = OPT(background), right_cell_fg = OPT(foreground); index_type cell_color_x = 0; char_type left_char = line_get_char(line, cell_color_x); colors_for_cell(line, self->color_profile, &cell_color_x, &left_cell_fg, &left_cell_bg);