mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Accept (and document) "none" instead of "default" for attributes as it
is clearer and avoids confusion with default colours.
This commit is contained in:
parent
e5f01febd7
commit
4af4d12475
@ -28,7 +28,7 @@ attributes_tostring(u_char attr)
|
|||||||
static char buf[128];
|
static char buf[128];
|
||||||
|
|
||||||
if (attr == 0)
|
if (attr == 0)
|
||||||
return ("default");
|
return ("none");
|
||||||
|
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
if (attr & GRID_ATTR_BRIGHT)
|
if (attr & GRID_ATTR_BRIGHT)
|
||||||
@ -63,7 +63,7 @@ attributes_fromstring(const char *str)
|
|||||||
if (strchr(delimiters, str[strlen(str) - 1]) != NULL)
|
if (strchr(delimiters, str[strlen(str) - 1]) != NULL)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
||||||
if (strcasecmp(str, "default") == 0)
|
if (strcasecmp(str, "default") == 0 || strcasecmp(str, "none") == 0)
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
attr = 0;
|
attr = 0;
|
||||||
|
2
tmux.1
2
tmux.1
@ -1589,7 +1589,7 @@ This has no effect as a session option; it must be set as a global option.
|
|||||||
Set status line message attributes, where
|
Set status line message attributes, where
|
||||||
.Ar attributes
|
.Ar attributes
|
||||||
is either
|
is either
|
||||||
.Ic default
|
.Ic none
|
||||||
or a comma-delimited list of one or more of:
|
or a comma-delimited list of one or more of:
|
||||||
.Ic bright
|
.Ic bright
|
||||||
(or
|
(or
|
||||||
|
Loading…
Reference in New Issue
Block a user