mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
fission: handle extrawide characters on input #2002
This commit is contained in:
parent
6ad09dd30c
commit
60e13fb2d2
@ -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…
x
Reference in New Issue
Block a user