From afb5db14c89a965462ce561b942a15dbf70567eb Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Sun, 24 Aug 2014 14:05:42 +0200 Subject: curses: Fix '?' to toggle quick help Previously, pressing '?' only made the quick help appear but not disappear again. Reported-by: Bill [github id "broomdodger"] Signed-off-by: Thomas Graf --- src/out_curses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/out_curses.c b/src/out_curses.c index fde2ef6..4d64169 100644 --- a/src/out_curses.c +++ b/src/out_curses.c @@ -1112,7 +1112,7 @@ static int handle_input(int ch) case '?': clear(); - print_help = 1; + print_help = print_help ? 0 : 1; return 1; case KEY_TOGGLE_GRAPH: -- cgit v1.2.3