src/oping.c: Resizing the scrolling region seems to work with this parameters.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 12 Jun 2010 14:04:02 +0000 (16:04 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 12 Jun 2010 14:04:02 +0000 (16:04 +0200)
I don't understand what I'm doing different to previously, but whatever
it is it seems to do the trick.

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); */