Code

Handle duplicate hosts without visual corruption
authorHamish Coleman <hamish@zot.org>
Fri, 17 Feb 2017 07:52:16 +0000 (15:52 +0800)
committerHamish Coleman <hamish@zot.org>
Tue, 9 May 2017 01:10:43 +0000 (09:10 +0800)
src/oping.c

index 35e24201a8773aee93865f390b0a094900daac3d..47249b54321ef0946d18fcab4fbae531b7081d80 100644 (file)
@@ -1376,7 +1376,7 @@ static int check_resize (pingobj_t *ping) /* {{{ */
                                /* FIXME - scroll main_win correctly so that old
                                 * data is still visible */
                                need_resize = 1;
-                               host_num++;
+                               host_num = ping_iterator_count(ping);
                                ping_initialize_contexts(ping);
                        }
                }