Lines Matching refs:wcol

17 static int coladvance2(pos_T *pos, int addspaces, int finetune, colnr_T wcol);
55 coladvance_force(colnr_T wcol) in coladvance_force() argument
57 int rc = coladvance2(&curwin->w_cursor, TRUE, FALSE, wcol); in coladvance_force()
59 if (wcol == MAXCOL) in coladvance_force()
65 curwin->w_virtcol = wcol; in coladvance_force()
96 coladvance(colnr_T wcol) in coladvance() argument
98 int rc = getvpos(&curwin->w_cursor, wcol); in coladvance()
100 if (wcol == MAXCOL || rc == FAIL) in coladvance()
106 curwin->w_virtcol = wcol; in coladvance()
116 getvpos(pos_T *pos, colnr_T wcol) in getvpos() argument
118 return coladvance2(pos, FALSE, virtual_active(), wcol); in getvpos()
128 colnr_T wcol = wcol_arg; in coladvance2() local
142 || ((get_ve_flags() & VE_ONEMORE) && wcol < MAXCOL); in coladvance2()
145 if (wcol >= MAXCOL) in coladvance2()
148 col = wcol; in coladvance2()
164 && wcol >= (colnr_T)width in coladvance2()
171 if (wcol / width > (colnr_T)csize / width in coladvance2()
172 && ((State & INSERT) == 0 || (int)wcol > csize + 1)) in coladvance2()
178 wcol = (csize / width + 1) * width - 1; in coladvance2()
183 while (col <= wcol && *ptr != NUL) in coladvance2()
201 if (col > wcol || (!virtual_active() && one_more == 0)) in coladvance2()
213 && wcol >= 0 in coladvance2()
214 && ((col != wcol && col != wcol + 1) || csize > 1)) in coladvance2()
222 int correct = wcol - col; in coladvance2()
240 col = wcol; in coladvance2()
246 int correct = wcol - col - csize + 1; // negative!! in coladvance2()
286 if (wcol == MAXCOL) in coladvance2()
299 int b = (int)wcol - (int)col; in coladvance2()
313 if (wcol < 0 || col < wcol) in coladvance2()