Skip to content

Commit

Permalink
curses: Fix '?' to toggle quick help
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tgraf committed Aug 24, 2014
1 parent c06050d commit afb5db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/out_curses.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit afb5db1

Please sign in to comment.