deleting a subwin in waterfall

This commit is contained in:
Tonton Th 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 close_waterfall(WINDOW *wf, int notused)
{ {
int foo;
if (NULL == wf) { if (NULL == wf) {
fprintf(stderr, "%s wf is null\n", __func__); fprintf(stderr, "%s wf is null\n", __func__);
return -1; return -1;
} }
foo = delwin(wf);
if (ERR==foo) {
fprintf(stderr, "%s : err on delwin\n", __func__);
return -1;
}
return 0; return 0;
} }
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */