notcurses_core_init: kill bogus reset of rstate cursor #2038

This commit is contained in:
nick black 2021-08-09 18:00:36 -04:00
parent 02c29fb83e
commit acbfa8dab0
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -1168,7 +1168,6 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
free_plane(ret->stdplane); free_plane(ret->stdplane);
goto err; goto err;
} }
ret->rstate.x = ret->rstate.y = -1;
init_banner(ret, &ret->rstate.f); init_banner(ret, &ret->rstate.f);
fwrite(ret->rstate.f.buf, ret->rstate.f.used, 1, ret->ttyfp); fwrite(ret->rstate.f.buf, ret->rstate.f.used, 1, ret->ttyfp);
fbuf_reset(&ret->rstate.f); fbuf_reset(&ret->rstate.f);