-/* $OpenBSD: colour.c,v 1.23 2021/10/25 21:21:16 nicm Exp $ */
+/* $OpenBSD: colour.c,v 1.24 2021/11/01 07:48:04 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
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);
}
-/* $OpenBSD: status.c,v 1.229 2021/10/26 12:29:41 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.230 2021/11/01 07:48:04 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
item.name = list[i];
item.key = '0' + (i - spm->start);
item.command = NULL;
- menu_add_item(menu, &item, NULL, NULL, NULL);
+ menu_add_item(menu, &item, NULL, c, NULL);
}
if (options_get_number(c->session->options, "status-position") == 0)