summaryrefslogtreecommitdiff
path: root/shed_history.c
blob: 076554cbc3953e78560906388ebd953d4a193f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stddef.h>
#include "shed.h"

int shed_history_forward(struct shed *e)
{
	if (e->cur->next != NULL) {
		e->cur = e->cur->next;
	}
	return shed_redraw(e);
}

int shed_history_backward(struct shed *e)
{
	if (e->cur->prev != NULL) {
		e->cur = e->cur->prev;
	}
	return shed_redraw(e);
}