Lines Matching refs:hisidx

17 static int	hisidx[HIST_COUNT] = {-1, -1, -1, -1, -1};  // lastused entry  variable
49 return &hisidx[hist_type]; in get_hisidx()
155 if (hisidx[type] < 0) // there are no entries yet in init_history()
162 for (i = 0; i <= hisidx[type]; ++i) in init_history()
165 for ( ; i <= newlen - (hislen - hisidx[type]); ++i) in init_history()
172 j = hisidx[type]; in init_history()
181 if (j == hisidx[type]) in init_history()
184 hisidx[type] = newlen - 1; in init_history()
219 if (hisidx[type] < 0) in in_history()
221 i = hisidx[type]; in in_history()
241 } while (i != hisidx[type]); in in_history()
246 while (i != hisidx[type]) in in_history()
315 if (maptick == last_maptick && hisidx[HIST_SEARCH] >= 0) in add_to_history()
318 hisptr = &history[HIST_SEARCH][hisidx[HIST_SEARCH]]; in add_to_history()
322 if (--hisidx[HIST_SEARCH] < 0) in add_to_history()
323 hisidx[HIST_SEARCH] = hislen - 1; in add_to_history()
329 if (++hisidx[histype] == hislen) in add_to_history()
330 hisidx[histype] = 0; in add_to_history()
331 hisptr = &history[histype][hisidx[histype]]; in add_to_history()
358 || hisidx[histype] < 0) in get_history_idx()
361 return history[histype][hisidx[histype]].hisnum; in get_history_idx()
378 || (i = hisidx[histype]) < 0 || num == 0) in calc_hist_idx()
439 hisidx[histype] = -1; // mark history as cleared in clr_history()
466 && (idx = hisidx[histype]) >= 0 in del_history_entry()
496 hisidx[histype] = -1; in del_history_entry()
514 idx = hisidx[histype]; in del_history_idx()
531 hisidx[histype] = i; in del_history_idx()
665 i = hisidx[HIST_CMD]; in remove_key_from_history()
748 idx = hisidx[histype1]; in ex_history()