ncplane_putc_yx(): abstract to ncplane_cell_ref_yx()

pull/555/head
nick black 4 years ago
parent c0b2a64102
commit 4951a6876c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1261,7 +1261,7 @@ int ncplane_putc_yx(ncplane* n, int y, int x, const cell* c){
// that cell as wide). Any character placed atop one half of a wide character
// obliterates the other half. Note that a wide char can thus obliterate two
// wide chars, totalling four columns.
cell* targ = &n->fb[nfbcellidx(n, n->y, n->x)];
cell* targ = ncplane_cell_ref_yx(n, n->y, n->x);
if(n->x > 0){
if(cell_double_wide_p(targ)){ // replaced cell is half of a wide char
if(targ->gcluster == 0){ // we're the right half

Loading…
Cancel
Save