~nloomans/ft_select

ref: 58e0f76775f4305cf0859829a92396ea09aad749 ft_select/src/action/select.c -rw-r--r-- 1.1 KiB
58e0f767Noah Loomans fix render norm 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/*                                                                            */
/*                                                        ::::::::            */
/*   ft_select                                          :+:    :+:            */
/*                                                     +:+                    */
/*   Author: Noah Loomans                             +#+                     */
/*           <nloomans@student.codam.nl>             +#+                      */
/*                                                  #+#    #+#                */
/*   License: GPLv3                                ########   odam.nl         */
/*                                                                            */
/* ************************************************************************** */

#include "action.h"
#include "state.h"

void			action_select(struct s_state *state)
{
	struct s_state_option	*option;

	option = unpack_option(state->cursor);
	option->selected = !option->selected;
}