fission: handle extrawide characters on input #2002

pull/2011/head
nick black 3 years ago
parent 6ad09dd30c
commit 60e13fb2d2
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -171,7 +171,7 @@ int fission_demo(struct notcurses* nc){
if(ncplane_putc_yx(n, usey - y, usex - x, &c) < 0){
// allow a fail if we were printing a wide char to the
// last column of our plane
if(!nccell_double_wide_p(&c) || usex + 1 < x + newx){
if(!nccell_double_wide_p(&c) || usex + nccell_cols(&c) - 1 < x + newx){
nccell_release(n, &c);
goto err;
}

Loading…
Cancel
Save