only move stdplane cursor on init when NCOPTION_PRESERVE_CURSOR

pull/1978/head
nick black 3 years ago
parent aa722b78e6
commit 32ed5a57b0
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1198,7 +1198,9 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
goto err;
}
}
ncplane_cursor_move_yx(ret->stdplane, ret->rstate.logendy, ret->rstate.logendx);
if(opts->flags & NCOPTION_PRESERVE_CURSOR){
ncplane_cursor_move_yx(ret->stdplane, ret->rstate.logendy, ret->rstate.logendx);
}
}
if(set_fd_nonblocking(ret->tcache.input.infd, 1, &ret->stdio_blocking_save)){
goto err;

Loading…
Cancel
Save