From aac3188c7af2db1a9483e03ceb31c94f174d5f9f Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 19 Nov 2014 18:08:14 +0100 Subject: [PATCH] src/oping.c: Switch graphs when pressing "g". --- src/oping.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/oping.c b/src/oping.c index cce4379..79afb5f 100644 --- a/src/oping.c +++ b/src/oping.c @@ -1268,6 +1268,13 @@ static int check_resize (pingobj_t *ping) /* {{{ */ break; else if (key == KEY_RESIZE) need_resize = 1; + else if (key == 'g') + { + if (opt_show_graph == 3) + opt_show_graph = 1; + else if (opt_show_graph > 0) + opt_show_graph++; + } } if (need_resize) -- 2.30.2