Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing issue #3 #20

Merged
merged 2 commits into from
May 7, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add possibility of deselecting full stack by shift+N
greno4ka committed Feb 9, 2018
commit 464615fdaa148cdb2e70e4acc7e4881ab41d7e45
9 changes: 9 additions & 0 deletions src/keyboard.c
Original file line number Diff line number Diff line change
@@ -128,6 +128,15 @@ static void handle_card_movement(struct cursor *cursor) {
}
}
break;
case 'N':
if (origin == cursor_stack(cursor) && maneuvre_stack(*origin)) {
erase_stack(*origin);
unmark_cards(*origin);
card_mark((*origin)->card);
draw_stack(*origin);
}
break;

case KEY_SPACEBAR:;
/* http://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg259382.html */
struct stack **destination = cursor_stack(cursor);