~arivigo/sline

fbffb8cab222b703dd857f6a6c6ff71d5a0a4d0b — Ariadna Vigo a month ago 3e83dfd
history.c: fixed segfault at history_del_top()
1 files changed, 3 insertions(+), 0 deletions(-)

M history.c
M history.c => history.c +3 -0
@@ 55,6 55,9 @@ history_set(int pos, const char *input)
void
history_del_top(void)
{
	if (hist_top == 0)
		return;

	--hist_top;
	hist_pos = hist_top;
}