diff --git a/src/view/view.cpp b/src/view/view.cpp index 1930fc119..acaa5048f 100644 --- a/src/view/view.cpp +++ b/src/view/view.cpp @@ -98,6 +98,17 @@ int main(int argc, char** argv){ if(ie == (char32_t)-1){ break; } + if(ie == NCKEY_RESIZE){ + --i; // rerun with the new size + if(notcurses_resize(nc, &dimy, &dimx)){ + notcurses_stop(nc); + return EXIT_FAILURE; + } + if(ncplane_resize_simple(ncp, dimy, dimx)){ + notcurses_stop(nc); + return EXIT_FAILURE; + } + } ncvisual_destroy(ncv); } if(notcurses_stop(nc)){