mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
ncdirect_style_emit: return 0 when no sgr is defined #1791
This commit is contained in:
parent
ce2b89552a
commit
32c34b1782
@ -868,6 +868,10 @@ ncdirect_style_emit(ncdirect* n, unsigned stylebits, FILE* out){
|
||||
stylebits & NCSTYLE_BOLD,
|
||||
stylebits & NCSTYLE_INVIS,
|
||||
stylebits & NCSTYLE_PROTECT, 0), out, false);
|
||||
}else{
|
||||
// no sgr, interesting. return failure if our stylebits were provided?
|
||||
// back off to individual enablers? FIXME
|
||||
return 0;
|
||||
}
|
||||
// sgr resets colors, so set them back up if not defaults
|
||||
if(r == 0){
|
||||
|
Loading…
Reference in New Issue
Block a user