From: Hamish Coleman Date: Fri, 17 Feb 2017 07:42:37 +0000 (+0800) Subject: Clean up screen in the case where we are adding a new row X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=eb18372a3ff1cd42c57e256b5f0cc948d7abb7f0;p=liboping.git Clean up screen in the case where we are adding a new row --- diff --git a/src/oping.c b/src/oping.c index f48309a..35e2420 100644 --- a/src/oping.c +++ b/src/oping.c @@ -1324,6 +1324,8 @@ static int on_resize (pingobj_t *ping) /* {{{ */ if (context->window != NULL) { + werase (context->window); + wrefresh (context->window); delwin (context->window); context->window = NULL; }