ncplane_put: obliterate the leftmost cell of the multipoint victim #2003

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

@ -1634,8 +1634,8 @@ ncplane_put(ncplane* n, int y, int x, const char* egc, int cols,
lmc = ncplane_cell_ref_yx(n, n->y, --idx);
}
// we're now on the leftmost cell of the target glyph.
int twidth = nccell_cols(targ);
nccell_release(n, &n->fb[nfbcellidx(n, n->y, idx)]);
int twidth = nccell_cols(lmc);
nccell_release(n, lmc);
twidth -= n->x - idx;
while(--twidth > 0){
nccell_obliterate(n, &n->fb[nfbcellidx(n, n->y, n->x + twidth)]);

Loading…
Cancel
Save