From c26a6f4178a2e983d2491d2eee9665807c75d87b Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Mon, 7 May 2018 13:26:20 +0200 Subject: [PATCH] This doesn't need to be a while. We're already iterating. --- src/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index 5b2d45e..07a1b05 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -98,7 +98,7 @@ static void handle_card_movement(struct cursor *cursor) { case 'M': if (origin == cursor_stack(cursor) && maneuvre_stack(*origin)) { for (struct stack *i = *origin; i && i->next; i = i->next) { - while (i->next->card->face == EXPOSED && + if (i->next->card->face == EXPOSED && (i->card->frame->begin_y - i->next->card->frame->begin_y) > 1) { erase_stack(*origin); card_mark(i->next->card);