ncplane_scrollup: call notcurses_render() when appropriate #2557

This commit is contained in:
nick black 2022-02-17 04:17:53 -05:00
parent 184666170c
commit a35d42b0e4

View File

@ -1770,6 +1770,9 @@ int ncplane_scrollup(ncplane* n, int r){
while(r-- > 0){
scroll_down(n);
}
if(n == notcurses_stdplane(ncplane_notcurses(n))){
notcurses_render(ncplane_notcurses(n));
}
return 0;
}
@ -1787,6 +1790,7 @@ int ncplane_scrollup_child(ncplane* n, const ncplane* child){
}
int parend = ncplane_abs_y(n) + ncplane_dim_y(n) - 1; // where parent ends
int chend = ncplane_abs_y(child) + ncplane_dim_y(child) - 1; // where child ends
fprintf(stderr, "chend: %d parend: %d\n", chend, parend);
if(chend <= parend){
return 0;
}