notcurses_input: need lock around refresh()

pull/2166/head
nick black 3 years ago
parent 55c7cc356d
commit bfdd5dd01d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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";

Loading…
Cancel
Save