From 9e1186a73279f9e6416cc594171482be5a223820 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 7 Mar 2022 19:56:23 +0800 Subject: [PATCH] ; * src/xterm.c (x_alloc_nearest_color_1): Add missing part of change. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 1befa97fd14..76222d6256f 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -3878,10 +3878,10 @@ x_alloc_nearest_color_1 (Display *dpy, Colormap cmap, XColor *color) * ((color->blue >> 8) - (cells[x].blue >> 8)))); if (trial_delta < nearest_delta) { - XColor temp; temp.red = cells[x].red; temp.green = cells[x].green; temp.blue = cells[x].blue; + nearest = x; nearest_delta = trial_delta; } -- 2.39.2