diff options
Diffstat (limited to 'src/move.c')
-rw-r--r-- | src/move.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -63,7 +63,9 @@ struct move prompt_get_move(enum player_color current_player) { char *input = readline(prompt); if (input != NULL) { - add_history(input); + if (strlen(input) > 0) { + add_history(input); + } if (STREQ(input, "h")) { print_help(); } else if (STREQ(input, "p")) { |