reset_term_attributes(): flush after oc

This commit is contained in:
nick black 2020-07-25 21:59:25 -04:00
parent 480ea76989
commit 46b1e6b2fa
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -55,7 +55,7 @@ reset_term_attributes(notcurses* nc){
if(nc->tcache.sgr0 && term_emit("sgr0", nc->tcache.sgr0, nc->ttyfp, false)){
ret = -1;
}
if(nc->tcache.oc && term_emit("oc", nc->tcache.oc, nc->ttyfp, false)){
if(nc->tcache.oc && term_emit("oc", nc->tcache.oc, nc->ttyfp, true)){
ret = -1;
}
return ret;