From 4fe5aa99fb203ddb25089955d8814e1065e11a60 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 1 Nov 2021 07:48:04 +0000 Subject: Fix a comparison, from Ben Boeckel, and a crash when opening completion menu, from Anindya Mukherjee. --- colour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'colour.c') diff --git a/colour.c b/colour.c index 92bbd71e..6ede25da 100644 --- a/colour.c +++ b/colour.c @@ -115,7 +115,7 @@ colour_force_rgb(int c) return (colour_256toRGB(c)); if (c >= 0 && c <= 7) return (colour_256toRGB(c)); - if (c >= 90 & c <= 97) + if (c >= 90 && c <= 97) return (colour_256toRGB(8 + c - 90)); return (-1); } -- cgit