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 35e2420..47249b5 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);
                        }
                }