From 324b9872abe4b352bfc476f1dffc5975a023bd9b Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Sat, 7 Jan 2017 20:37:08 -0200 Subject: [PATCH] Only maneuvre stacks are marked. --- src/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index 92ee0f7..f5928d2 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -160,7 +160,7 @@ static void handle_card_movement(struct cursor *cursor) { erase_cursor(cursor); cursor->y--; } - if (maneuvre_stack(*origin)) { + if (marked_cards_count(*origin) > 0 && maneuvre_stack(*origin)) { erase_stack(*origin); unmark_cards(*origin); draw_stack(*origin);