diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index e1857fe26..20bffc91d 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -1146,7 +1146,7 @@ int notcurses_stop(notcurses* nc){ // wrote. move it to the bottom left of the screen. if(!nc->tcache.smcup){ tty_emit(tiparm(nc->tcache.hpa, 0), nc->ttyfd); - tty_emit(tiparm(nc->tcache.vpa, nc->lfdimy - 1), nc->ttyfd); + tty_emit(tiparm(nc->tcache.vpa, nc->lfdimy + nc->margin_t - 1), nc->ttyfd); } if(nc->ttyfd >= 0){ ret |= close(nc->ttyfd);