[ncneofetch] return error on failure to emit newline

This commit is contained in:
nick black 2021-11-24 12:57:24 -05:00 committed by nick black
parent 06056f5f9c
commit 4087d59a05

View File

@ -578,7 +578,11 @@ infoplane_notcurses(struct notcurses* nc, const fetched_info* fi,
if(chend > parend){
ncplane_move_rel(infop, -(chend - parend), 0);
}
ncplane_putchar(std, '\n');
if(ncplane_putchar_yx(std, ncplane_abs_y(infop) + ncplane_dim_y(infop) - 1,
ncplane_abs_x(infop) + ncplane_dim_x(infop) + 1,
'\n') != 1){
return -1;
}
if(notcurses_render(nc)){
return -1;
}