Lines Matching refs:idx

621 	    int idx;  in handle_viminfo_history()  local
628 for (idx = 0; idx < viminfo_hisidx[type]; ++idx) in handle_viminfo_history()
630 p = viminfo_history[type][idx].hisstr; in handle_viminfo_history()
649 viminfo_history[type][idx].time_set = vp[1].bv_nr; in handle_viminfo_history()
655 viminfo_history[type][idx].hisstr = p; in handle_viminfo_history()
656 viminfo_history[type][idx].hisnum = 0; in handle_viminfo_history()
657 viminfo_history[type][idx].viminfo = TRUE; in handle_viminfo_history()
672 int idx; in concat_history() local
679 idx = *hisidx + viminfo_hisidx[type]; in concat_history()
680 if (idx >= hislen) in concat_history()
681 idx -= hislen; in concat_history()
682 else if (idx < 0) in concat_history()
683 idx = hislen - 1; in concat_history()
685 *hisidx = idx; in concat_history()
692 if (histentry[idx].hisstr != NULL || histentry[idx].viminfo) in concat_history()
694 if (++idx == hislen) in concat_history()
695 idx = 0; in concat_history()
696 } while (idx != *hisidx); in concat_history()
697 if (idx != *hisidx && --idx < 0) in concat_history()
698 idx = hislen - 1; in concat_history()
702 vim_free(histentry[idx].hisstr); in concat_history()
703 histentry[idx].hisstr = viminfo_history[type][i].hisstr; in concat_history()
704 histentry[idx].viminfo = TRUE; in concat_history()
705 histentry[idx].time_set = viminfo_history[type][i].time_set; in concat_history()
706 if (--idx < 0) in concat_history()
707 idx = hislen - 1; in concat_history()
709 idx += 1; in concat_history()
710 idx %= hislen; in concat_history()
713 histentry[idx++].hisnum = ++*hisnum; in concat_history()
714 idx %= hislen; in concat_history()
1432 int idx = -1; in read_viminfo_search_pattern() local
1478 idx = RE_SEARCH; in read_viminfo_search_pattern()
1480 idx = RE_SUBST; in read_viminfo_search_pattern()
1487 if (idx >= 0) in read_viminfo_search_pattern()
1489 spat = get_spat(idx); in read_viminfo_search_pattern()
1496 set_last_search_pat(val, idx, magic, setlast); in read_viminfo_search_pattern()
1515 int idx, // spats[] index in wvsp_one() argument
1519 spat_T *spat = get_spat(idx); in wvsp_one()
1530 get_spat_last_idx() == idx ? "~" : "", // last used pat in wvsp_one()
2102 int idx; in write_viminfo_filemarks() local
2147 idx = NMARKS; in write_viminfo_filemarks()
2154 && (vi_fm->time_set > namedfm_p[idx].time_set in write_viminfo_filemarks()
2155 || namedfm_p[idx].fmark.mark.lnum == 0)) in write_viminfo_filemarks()
2162 fm = &namedfm_p[idx++]; in write_viminfo_filemarks()
2182 idx = curwin->w_jumplistlen - 1; in write_viminfo_filemarks()
2187 fm = idx >= 0 ? &curwin->w_jumplist[idx] : NULL; in write_viminfo_filemarks()
2198 --idx; in write_viminfo_filemarks()
2623 int idx; in handle_viminfo_mark() local
2629 for (idx = curwin->w_jumplistlen - 1; idx >= 0; --idx) in handle_viminfo_mark()
2630 if (curwin->w_jumplist[idx].time_set < timestamp) in handle_viminfo_mark()
2632 ++idx; in handle_viminfo_mark()
2636 if (idx < 0 && curwin->w_jumplistlen < JUMPLISTSIZE) in handle_viminfo_mark()
2638 idx = 0; in handle_viminfo_mark()
2642 idx = 0; in handle_viminfo_mark()
2644 idx = -1; in handle_viminfo_mark()
2646 if (idx >= 0) in handle_viminfo_mark()
2651 --idx; in handle_viminfo_mark()
2653 for (i = 0; i < idx; ++i) in handle_viminfo_mark()
2659 for (i = curwin->w_jumplistlen; i > idx; --i) in handle_viminfo_mark()
2664 fm = &curwin->w_jumplist[idx]; in handle_viminfo_mark()
2674 int idx; in handle_viminfo_mark() local
2680 idx = name - '0' + NMARKS; in handle_viminfo_mark()
2687 for (idx = NMARKS; idx < NMARKS + EXTRA_MARKS; ++idx) in handle_viminfo_mark()
2688 if (namedfm_p[idx].time_set < timestamp) in handle_viminfo_mark()
2690 if (idx == NMARKS + EXTRA_MARKS) in handle_viminfo_mark()
2696 for ( ; i > idx; --i) in handle_viminfo_mark()
2698 namedfm_p[idx].fname = NULL; in handle_viminfo_mark()
2702 idx = name - 'A'; in handle_viminfo_mark()
2704 fm = &vi_namedfm[idx]; in handle_viminfo_mark()
2706 fm = &namedfm_p[idx]; in handle_viminfo_mark()