mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
[ncneofetch] return error on failure to emit newline
This commit is contained in:
parent
06056f5f9c
commit
4087d59a05
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user