deleting a subwin in waterfall

This commit is contained in:
tth 2019-01-27 11:55:25 +01:00
parent 5e0d33cfe1
commit bc7e6379e6

View File

@ -100,12 +100,18 @@ return -1;
/* ---------------------------------------------------------------- */
int close_waterfall(WINDOW *wf, int notused)
{
int foo;
if (NULL == wf) {
fprintf(stderr, "%s wf is null\n", __func__);
return -1;
}
foo = delwin(wf);
if (ERR==foo) {
fprintf(stderr, "%s : err on delwin\n", __func__);
return -1;
}
return 0;
}
/* ---------------------------------------------------------------- */