mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
notcurses_core_init: flush following sprite_clear_all()
This commit is contained in:
parent
24ccb66a20
commit
272607a07c
@ -1208,7 +1208,7 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
|
||||
// the sprite clear ought take place within the alternate screen, if it's
|
||||
// being used.
|
||||
if(!(opts->flags & NCOPTION_NO_CLEAR_BITMAPS)){
|
||||
if(sprite_clear_all(&ret->tcache, ret->ttyfp)){
|
||||
if(sprite_clear_all(&ret->tcache, ret->ttyfp) || fflush(ret->ttyfp)){
|
||||
free_plane(ret->stdplane);
|
||||
goto err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user