mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Permit attributes to be turned off in #[] by prefixing with "no", for example
"noblink".
This commit is contained in:
@ -347,6 +347,10 @@ screen_write_parsestyle(
|
||||
bg = defgc->bg;
|
||||
} else
|
||||
return;
|
||||
} else if (end > 2 && strncasecmp(tmp, "no", 2) == 0) {
|
||||
if ((val = attributes_fromstring(tmp + 2)) == -1)
|
||||
return;
|
||||
attr &= ~val;
|
||||
} else {
|
||||
if ((val = attributes_fromstring(tmp)) == -1)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user