Lines Matching refs:idx

96 get_history_arg(expand_T *xp UNUSED, int idx)  in get_history_arg()  argument
103 if (idx < short_names_count) in get_history_arg()
105 compl[0] = (char_u)short_names[idx]; in get_history_arg()
108 if (idx < short_names_count + history_name_count) in get_history_arg()
109 return (char_u *)history_names[idx - short_names_count]; in get_history_arg()
110 if (idx == short_names_count + history_name_count) in get_history_arg()
411 get_history_entry(int histype, int idx) in get_history_entry() argument
413 idx = calc_hist_idx(histype, idx); in get_history_entry()
414 if (idx >= 0) in get_history_entry()
415 return history[histype][idx].hisstr; in get_history_entry()
455 int idx; in del_history_entry() local
466 && (idx = hisidx[histype]) >= 0 in del_history_entry()
470 i = last = idx; in del_history_entry()
494 } while (i != idx); in del_history_entry()
495 if (history[histype][idx].hisstr == NULL) in del_history_entry()
507 del_history_idx(int histype, int idx) in del_history_idx() argument
511 i = calc_hist_idx(histype, idx); in del_history_idx()
514 idx = hisidx[histype]; in del_history_idx()
519 if (histype == HIST_SEARCH && maptick == last_maptick && i == idx) in del_history_idx()
522 while (i != idx) in del_history_idx()
608 int idx; in f_histget() local
623 idx = get_history_idx(type); in f_histget()
625 idx = (int)tv_get_number_chk(&argvars[1], NULL); in f_histget()
627 rettv->vval.v_string = vim_strsave(get_history_entry(type, idx)); in f_histget()
697 int idx; in ex_history() local
748 idx = hisidx[histype1]; in ex_history()
753 j = (-j > hislen) ? 0 : hist[(hislen+j+idx+1) % hislen].hisnum; in ex_history()
755 k = (-k > hislen) ? 0 : hist[(hislen+k+idx+1) % hislen].hisnum; in ex_history()
756 if (idx >= 0 && j <= k) in ex_history()
757 for (i = idx + 1; !got_int; ++i) in ex_history()
765 sprintf((char *)IObuff, "%c%6d ", i == idx ? '>' : ' ', in ex_history()
775 if (i == idx) in ex_history()