MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ed_next_history

Function ed_next_history

extern/editline/src/common.c:677–697  ·  view source on GitHub ↗

ed_next_history(): * Move to the next history line * [^N] [j] */

Source from the content-addressed store, hash-verified

675 * [^N] [j]
676 */
677protected el_action_t
678/*ARGSUSED*/
679ed_next_history(EditLine *el, Int c __attribute__((__unused__)))
680{
681 el_action_t beep = CC_REFRESH, rval;
682
683 el->el_chared.c_undo.len = -1;
684 *el->el_line.lastchar = '\0'; /* just in case */
685
686 el->el_history.eventno -= el->el_state.argument;
687
688 if (el->el_history.eventno < 0) {
689 el->el_history.eventno = 0;
690 beep = CC_REFRESH_BEEP;
691 }
692 rval = hist_get(el);
693 if (rval == CC_REFRESH)
694 return beep;
695 return rval;
696
697}
698
699
700/* ed_search_prev_history():

Callers

nothing calls this directly

Calls 1

hist_getFunction · 0.85

Tested by

no test coverage detected