From 9bd039d1bc5f9109fb83fd2ed85e17d02908af19 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 29 Sep 2024 20:05:42 +0000 Subject: [PATCH] Fix grey colour, from Magnus Gross. --- colour.c | 2 +- tmux.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/colour.c b/colour.c index 0b787acb..5fd91c9c 100644 --- a/colour.c +++ b/colour.c @@ -948,7 +948,7 @@ colour_byname(const char *name) if (strncmp(name, "grey", 4) == 0 || strncmp(name, "gray", 4) == 0) { if (name[4] == '\0') - return (-1); + return (0xbebebe|COLOUR_FLAG_RGB); c = strtonum(name + 4, 0, 100, &errstr); if (errstr != NULL) return (-1); diff --git a/tmux.c b/tmux.c index 746e5ed6..d8985159 100644 --- a/tmux.c +++ b/tmux.c @@ -418,9 +418,9 @@ main(int argc, char **argv) cfg_files[cfg_nfiles++] = xstrdup(optarg); cfg_quiet = 0; break; - case 'V': + case 'V': printf("tmux %s\n", getversion()); - exit(0); + exit(0); case 'l': flags |= CLIENT_LOGIN; break;