ncplane_putstr_yx(): don't map 0 to -1 #485

pull/490/head
nick black 4 years ago
parent 64eeb95f1e
commit a0669974ff
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1231,7 +1231,7 @@ ncplane_putstr_yx(struct ncplane* n, int y, int x, const char* gclusters){
int wcs;
int cols = ncplane_putegc_yx(n, y, x, gclusters, &wcs);
if(cols < 0){
return ret == 0 ? -1 : -ret; // return -ret in case of error
return -ret;
}
if(wcs == 0){
break;

Loading…
Cancel
Save