Skip to content

Commit

Permalink
Fix grey colour, from Magnus Gross.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Sep 29, 2024
1 parent 489c69f commit 9bd039d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion colour.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions tmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9bd039d

Please sign in to comment.