summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-08-24 14:05:42 +0200
committerThomas Graf <tgraf@suug.ch>2014-08-24 14:05:42 +0200
commitafb5db14c89a965462ce561b942a15dbf70567eb (patch)
treeaf3c754ed0fa008d8d4d535e74e448e35d33f928
parentc06050d4eed5fcfad066eafa2eb3cdc06e661b48 (diff)
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 <tgraf@suug.ch>
-rw-r--r--src/out_curses.c2
1 files changed, 1 insertions, 1 deletions
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: