Searched refs:el_history (Results 1 – 10 of 10) sorted by relevance
57 el->el_history.fun = NULL; in hist_init()58 el->el_history.ref = NULL; in hist_init()59 el->el_history.buf = el_malloc(EL_BUFSIZ * sizeof(*el->el_history.buf)); in hist_init()60 el->el_history.sz = EL_BUFSIZ; in hist_init()61 if (el->el_history.buf == NULL) in hist_init()63 el->el_history.last = el->el_history.buf; in hist_init()75 el_free(el->el_history.buf); in hist_end()76 el->el_history.buf = NULL; in hist_end()87 el->el_history.ref = ptr; in hist_set()88 el->el_history.fun = fun; in hist_set()[all …]
644 int sv_event = el->el_history.eventno; in ed_prev_history()649 if (el->el_history.eventno == 0) { /* save the current buffer in ed_prev_history()651 (void) Strncpy(el->el_history.buf, el->el_line.buffer, in ed_prev_history()653 el->el_history.last = el->el_history.buf + in ed_prev_history()656 el->el_history.eventno += el->el_state.argument; in ed_prev_history()660 el->el_history.eventno = sv_event; in ed_prev_history()686 el->el_history.eventno -= el->el_state.argument; in ed_next_history()688 if (el->el_history.eventno < 0) { in ed_next_history()689 el->el_history.eventno = 0; in ed_next_history()715 if (el->el_history.eventno < 0) { in ed_search_prev_history()[all …]
58 ((((*(el)->el_history.fun) ((el)->el_history.ref, &(el)->el_history.ev, \59 fn, arg)) == -1) ? NULL : (el)->el_history.ev.str)
959 int sv_event_no = el->el_history.eventno; in vi_to_history_line()963 if (el->el_history.eventno == 0) { in vi_to_history_line()964 (void) Strncpy(el->el_history.buf, el->el_line.buffer, in vi_to_history_line()966 el->el_history.last = el->el_history.buf + in vi_to_history_line()972 el->el_history.eventno = 0x7fffffff; in vi_to_history_line()980 el->el_history.eventno = 1; in vi_to_history_line()983 el->el_history.eventno = 1 + el->el_history.ev.num in vi_to_history_line()985 if (el->el_history.eventno < 0) { in vi_to_history_line()986 el->el_history.eventno = sv_event_no; in vi_to_history_line()992 el->el_history.eventno = sv_event_no; in vi_to_history_line()
192 el->el_history.eventno); in c_setpat()218 int ohisteventno = el->el_history.eventno; in ce_inc_search()359 el->el_history.eventno = in ce_inc_search()409 if (el->el_history.eventno != in ce_inc_search()411 el->el_history.eventno = in ce_inc_search()436 if (el->el_history.eventno != ohisteventno) { in ce_inc_search()437 el->el_history.eventno = ohisteventno; in ce_inc_search()
140 el_history_t el_history; /* History stuff */ member
479 el->el_history.eventno = 0; in ch_reset()
9 el_history_init.3 el_history_end.3 el_history.3 el_tok_init.3 \
267 el_history_init.3 el_history_end.3 el_history.3 el_tok_init.3 \
370 * doc/Makefile.am: name all manpage links as el_* (e.g. el_history.3)