H_PREV_EVENT
case H_PREV_EVENT:
history(h, &ev, H_PREV_EVENT, curr_num);
pos < 0 ? H_NEXT_EVENT : H_PREV_EVENT, curr_num);