direct mode unit test fix for sgr0 #1344

This commit is contained in:
nick black 2021-03-15 02:42:24 -04:00
parent a8aec8d8d1
commit 9b15854ef4

View File

@ -15,7 +15,7 @@ TEST_CASE("DirectMode") {
}
printf("DirectMode *italic*!\n");
fflush(stdout);
if(nc_->tcache.sgr){
if(nc_->tcache.sgr0){
CHECK(0 == ncdirect_off_styles(nc_, NCSTYLE_ITALIC));
}else{
CHECK(0 != ncdirect_off_styles(nc_, NCSTYLE_ITALIC));