diff --git a/gnu/lib/libdialog/checklist.c b/gnu/lib/libdialog/checklist.c index bc6bcba21e0b..cdc7114b5587 100644 --- a/gnu/lib/libdialog/checklist.c +++ b/gnu/lib/libdialog/checklist.c @@ -342,6 +342,7 @@ dialog_checklist(unsigned char *title, unsigned char *prompt, int height, int wi else if (st & DITEM_RECREATE) { delwin(list); delwin(dialog); + dialog_clear(); goto draw; } } diff --git a/gnu/lib/libdialog/menubox.c b/gnu/lib/libdialog/menubox.c index ef945af0ae6c..97b6bf71e17a 100644 --- a/gnu/lib/libdialog/menubox.c +++ b/gnu/lib/libdialog/menubox.c @@ -395,6 +395,7 @@ dialog_menu(unsigned char *title, unsigned char *prompt, int height, int width, else if (status & DITEM_RECREATE && !(status & DITEM_LEAVE_MENU)) { delwin(menu); delwin(dialog); + dialog_clear(); goto draw; } } diff --git a/gnu/lib/libdialog/radiolist.c b/gnu/lib/libdialog/radiolist.c index 88fee25fd1cf..f1c21973d770 100644 --- a/gnu/lib/libdialog/radiolist.c +++ b/gnu/lib/libdialog/radiolist.c @@ -347,6 +347,7 @@ dialog_radiolist(unsigned char *title, unsigned char *prompt, int height, int wi else if (st & DITEM_RECREATE) { delwin(list); delwin(dialog); + dialog_clear(); goto draw; } }