From: nicm Date: Sun, 29 Sep 2024 20:05:42 +0000 (+0000) Subject: Fix grey colour, from Magnus Gross. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c7510e3d99da7623dad1f46a1e3f864c84beef68;p=openbsd Fix grey colour, from Magnus Gross. --- diff --git a/usr.bin/tmux/colour.c b/usr.bin/tmux/colour.c index 455781221cc..de832c6ae6d 100644 --- a/usr.bin/tmux/colour.c +++ b/usr.bin/tmux/colour.c @@ -1,4 +1,4 @@ -/* $OpenBSD: colour.c,v 1.27 2024/08/26 13:02:15 nicm Exp $ */ +/* $OpenBSD: colour.c,v 1.28 2024/09/29 20:05:42 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -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/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index 1332bf3aa5f..9514860c4e8 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.212 2024/05/15 09:59:12 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.213 2024/09/29 20:05:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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;