src/oping.c: Resizing the scrolling region seems to work with this parameters.
[liboping.git] / src / oping.c
index 4f9c5f3..f8f7dd6 100644 (file)
@@ -440,14 +440,7 @@ static int on_resize (pingobj_t *ping) /* {{{ */
                return (EINVAL);
 
        main_win_height = height - (4 * host_num);
-#if 1
-       wresize (main_win, main_win_height, /* width = */ 0);
-#else
-       delwin (main_win);
-       main_win = newwin (/* height = */ main_win_height,
-                       /* width = */ 0,
-                       /* y = */ 0, /* x = */ 0);
-#endif
+       wresize (main_win, main_win_height, /* width = */ width);
        /* Allow scrolling */
        scrollok (main_win, TRUE);
        /* wsetscrreg (main_win, 0, main_win_height - 1); */