mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
fix up direct mode style routines for fbuf #1977
This commit is contained in:
parent
4d4a4eb0d0
commit
7970846c10
@ -1011,7 +1011,7 @@ int ncdirect_off_styles(ncdirect* n, unsigned stylebits){
|
|||||||
if(fbuf_finalize(&f, n->ttyfp, false)){
|
if(fbuf_finalize(&f, n->ttyfp, false)){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ncdirect_styles_set(ncdirect* n, unsigned stylebits){
|
int ncdirect_styles_set(ncdirect* n, unsigned stylebits){
|
||||||
@ -1029,6 +1029,7 @@ int ncdirect_set_styles(ncdirect* n, unsigned stylebits){
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if(ncdirect_style_emit(n, stylemask, &f)){
|
if(ncdirect_style_emit(n, stylemask, &f)){
|
||||||
|
fbuf_free(&f);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if(fbuf_finalize(&f, n->ttyfp, false)){
|
if(fbuf_finalize(&f, n->ttyfp, false)){
|
||||||
|
Loading…
Reference in New Issue
Block a user