mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
ncdirect_putstr() is allowed to return 0
This commit is contained in:
parent
e9470ac4a9
commit
7b48c8b3d3
@ -1355,7 +1355,7 @@ int ncdirect_vline_interp(ncdirect* n, const char* egc, unsigned len,
|
||||
if(!bgdef){
|
||||
ncchannels_set_bg_rgb8(&channels, br1, bg1, bb1);
|
||||
}
|
||||
if(ncdirect_putstr(n, channels, egc) <= 0){
|
||||
if(ncdirect_putstr(n, channels, egc) == EOF){
|
||||
return -1;
|
||||
}
|
||||
if(len - ret > 1){
|
||||
|
Loading…
x
Reference in New Issue
Block a user