Lines Matching refs:pe
231 int pe) in vc_do_selection() argument
239 new_sel_end = pe; in vc_do_selection()
252 spc = is_space_on_vt(sel_pos(pe, unicode)); in vc_do_selection()
253 for (new_sel_end = pe; ; pe += 2) { in vc_do_selection()
254 if ((spc && !is_space_on_vt(sel_pos(pe, unicode))) || in vc_do_selection()
255 (!spc && !inword(sel_pos(pe, unicode)))) in vc_do_selection()
257 new_sel_end = pe; in vc_do_selection()
258 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection()
264 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
268 highlight_pointer(pe); in vc_do_selection()
281 for (pe = new_sel_end + 2; ; pe += 2) in vc_do_selection()
282 if (!is_space_on_vt(sel_pos(pe, unicode)) || in vc_do_selection()
283 atedge(pe, vc->vc_size_row)) in vc_do_selection()
285 if (is_space_on_vt(sel_pos(pe, unicode))) in vc_do_selection()
286 new_sel_end = pe; in vc_do_selection()
320 int ps, pe; in vc_selection() local
342 pe = v->ye * vc->vc_size_row + (v->xe << 1); in vc_selection()
343 if (ps > pe) /* make vc_sel.start <= vc_sel.end */ in vc_selection()
344 swap(ps, pe); in vc_selection()
351 return vc_do_selection(vc, v->sel_mode, ps, pe); in vc_selection()