summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2024-09-29 20:05:43 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2024-09-29 20:05:43 +0000
commit45b5afb6896cba6c5c722aceb02627170958cc1a (patch)
treee5a22b169a6326ca4aa0eac77e947b270b278378
parent85a82fabc75a487af31898e6c178f5b6b2c1f4a5 (diff)
Fix grey colour, from Magnus Gross.
-rw-r--r--usr.bin/tmux/colour.c4
-rw-r--r--usr.bin/tmux/tmux.c6
2 files changed, 5 insertions, 5 deletions
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 <nicholas.marriott@gmail.com>
@@ -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 <nicholas.marriott@gmail.com>
@@ -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;