term_setstyles: proper bitwise set of curattr

pull/1415/head
nick black 4 years ago
parent 4c9c2e1ed1
commit 15aab20d21
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -643,7 +643,7 @@ term_setstyles(FILE* out, notcurses* nc, const nccell* c){
} }
} }
// sgr will blow away italics/struck if they were set beforehand // sgr will blow away italics/struck if they were set beforehand
nc->rstate.curattr &= !(NCSTYLE_ITALIC | NCSTYLE_STRUCK); nc->rstate.curattr &= ~(NCSTYLE_ITALIC | NCSTYLE_STRUCK);
} }
ret |= term_setstyle(out, nc->rstate.curattr, cellattr, NCSTYLE_ITALIC, ret |= term_setstyle(out, nc->rstate.curattr, cellattr, NCSTYLE_ITALIC,
nc->tcache.italics, nc->tcache.italoff); nc->tcache.italics, nc->tcache.italoff);

Loading…
Cancel
Save