notcurses_input: need lock around refresh()

This commit is contained in:
nick black 2021-09-16 00:03:57 -04:00
parent 55c7cc356d
commit bfdd5dd01d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -34,7 +34,9 @@ static struct ncuplot* plot;
const char* nckeystr(char32_t spkey){
switch(spkey){ // FIXME
case NCKEY_RESIZE:
mtx.lock();
NotCurses::get_instance().refresh(&dimy, &dimx);
mtx.unlock();
return "resize event";
case NCKEY_INVALID: return "invalid";
case NCKEY_LEFT: return "left";