Permit attributes to be turned off in #[] by prefixing with "no", for example

"noblink".
This commit is contained in:
Nicholas Marriott
2009-10-12 11:08:02 +00:00
parent 762459954f
commit 33ae063cae
2 changed files with 12 additions and 4 deletions

View File

@ -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;