fallin': drop unused nccell c #1231

pull/1239/head
nick black 4 years ago
parent 28b1a80433
commit 1798e061e1
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -146,16 +146,15 @@ int fallin_demo(struct notcurses* nc){
ncplane_resize_simple(n, newy, newx);
continue;
}
nccell c = CELL_TRIVIAL_INITIALIZER;
nccell stdc = CELL_TRIVIAL_INITIALIZER;
if(ncplane_at_yx_cell(stdn, usey, usex, &stdc) < 0){
goto err;
}
if(c.gcluster){
if(stdc.gcluster){
if(ncplane_putc_yx(n, usey - y, usex - x, &stdc) < 0){
// allow a fail if we were printing a wide char to the
// last column of our plane
if(!cell_double_wide_p(&c) || usex + 1 < x + newx){
if(!cell_double_wide_p(&stdc) || usex + 1 < x + newx){
goto err;
}
}

Loading…
Cancel
Save