mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
ncreel: don't always call redraw
This commit is contained in:
parent
8bbd134504
commit
d2cfce04c7
@ -142,6 +142,9 @@ int runreels(struct notcurses* nc, struct ncplane* n, ncreel_options* nopts){
|
||||
auto tctx = static_cast<TabletCtx*>(nctablet_userptr(t));
|
||||
tctx->addLine();
|
||||
}
|
||||
if(ncreel_redraw(nr)){
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
}case '-':{
|
||||
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));
|
||||
tctx->subLine();
|
||||
}
|
||||
if(ncreel_redraw(nr)){
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
}case '*':
|
||||
notcurses_debug(nc, stderr);
|
||||
@ -170,9 +176,6 @@ int runreels(struct notcurses* nc, struct ncplane* n, ncreel_options* nopts){
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if(ncreel_redraw(nr)){
|
||||
break;
|
||||
}
|
||||
if(notcurses_render(nc)){
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user