mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
ncplane_put: obliterate the leftmost cell of the multipoint victim #2003
This commit is contained in:
parent
60e13fb2d2
commit
3875397367
@ -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…
x
Reference in New Issue
Block a user