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>
This commit is contained in:
Thomas Graf 2014-08-24 14:05:42 +02:00
parent c06050d4ee
commit afb5db14c8

View File

@ -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: