ncreel: don't always call redraw

This commit is contained in:
nick black 2020-09-09 08:00:15 -04:00
parent 8bbd134504
commit d2cfce04c7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -142,6 +142,9 @@ int runreels(struct notcurses* nc, struct ncplane* n, ncreel_options* nopts){
auto tctx = static_cast<TabletCtx*>(nctablet_userptr(t)); auto tctx = static_cast<TabletCtx*>(nctablet_userptr(t));
tctx->addLine(); tctx->addLine();
} }
if(ncreel_redraw(nr)){
return -1;
}
break; break;
}case '-':{ }case '-':{
auto t = ncreel_focused(nr); auto t = ncreel_focused(nr);
@ -149,6 +152,9 @@ int runreels(struct notcurses* nc, struct ncplane* n, ncreel_options* nopts){
auto tctx = static_cast<TabletCtx*>(nctablet_userptr(t)); auto tctx = static_cast<TabletCtx*>(nctablet_userptr(t));
tctx->subLine(); tctx->subLine();
} }
if(ncreel_redraw(nr)){
return -1;
}
break; break;
}case '*': }case '*':
notcurses_debug(nc, stderr); notcurses_debug(nc, stderr);
@ -170,9 +176,6 @@ int runreels(struct notcurses* nc, struct ncplane* n, ncreel_options* nopts){
default: default:
break; break;
} }
if(ncreel_redraw(nr)){
break;
}
if(notcurses_render(nc)){ if(notcurses_render(nc)){
break; break;
} }