Home
last modified time | relevance | path

Searched refs:el_history (Results 1 – 7 of 7) sorted by relevance

/mirbsd/src/lib/libedit/
Dhist.c57 el->el_history.fun = NULL; in hist_init()
58 el->el_history.ref = NULL; in hist_init()
59 el->el_history.buf = (char *) el_malloc(EL_BUFSIZ); 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((ptr_t) 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 …]
Dcommon.c647 int sv_event = el->el_history.eventno; in ed_prev_history()
652 if (el->el_history.eventno == 0) { /* save the current buffer in ed_prev_history()
654 (void) strncpy(el->el_history.buf, el->el_line.buffer, in ed_prev_history()
656 el->el_history.last = el->el_history.buf + in ed_prev_history()
659 el->el_history.eventno += el->el_state.argument; in ed_prev_history()
663 el->el_history.eventno = sv_event; in ed_prev_history()
689 el->el_history.eventno -= el->el_state.argument; in ed_next_history()
691 if (el->el_history.eventno < 0) { in ed_next_history()
692 el->el_history.eventno = 0; in ed_next_history()
718 if (el->el_history.eventno < 0) { in ed_search_prev_history()
[all …]
Dhist.h58 ((((*(el)->el_history.fun) ((el)->el_history.ref, &(el)->el_history.ev, \
59 fn, arg)) == -1) ? NULL : (el)->el_history.ev.str)
Dvi.c954 int sv_event_no = el->el_history.eventno; in vi_to_history_line()
958 if (el->el_history.eventno == 0) { in vi_to_history_line()
959 (void) strncpy(el->el_history.buf, el->el_line.buffer, in vi_to_history_line()
961 el->el_history.last = el->el_history.buf + in vi_to_history_line()
967 el->el_history.eventno = 0x7fffffff; in vi_to_history_line()
975 el->el_history.eventno = 1; in vi_to_history_line()
978 el->el_history.eventno = 1 + el->el_history.ev.num in vi_to_history_line()
980 if (el->el_history.eventno < 0) { in vi_to_history_line()
981 el->el_history.eventno = sv_event_no; in vi_to_history_line()
987 el->el_history.eventno = sv_event_no; in vi_to_history_line()
Dsearch.c185 el->el_history.eventno); in c_setpat()
211 int ohisteventno = el->el_history.eventno; in ce_inc_search()
351 el->el_history.eventno = in ce_inc_search()
400 if (el->el_history.eventno != in ce_inc_search()
402 el->el_history.eventno = in ce_inc_search()
427 if (el->el_history.eventno != ohisteventno) { in ce_inc_search()
428 el->el_history.eventno = ohisteventno; in ce_inc_search()
Del.h131 el_history_t el_history; /* History stuff */ member
Dchared.c525 el->el_history.eventno = 0; in ch_reset()