Lines Matching refs:pe
230 int pe) in vc_do_selection() argument
238 new_sel_end = pe; in vc_do_selection()
251 spc = is_space_on_vt(sel_pos(pe, unicode)); in vc_do_selection()
252 for (new_sel_end = pe; ; pe += 2) { in vc_do_selection()
253 if ((spc && !is_space_on_vt(sel_pos(pe, unicode))) || in vc_do_selection()
254 (!spc && !inword(sel_pos(pe, unicode)))) in vc_do_selection()
256 new_sel_end = pe; in vc_do_selection()
257 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection()
263 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
267 highlight_pointer(pe); in vc_do_selection()
280 for (pe = new_sel_end + 2; ; pe += 2) in vc_do_selection()
281 if (!is_space_on_vt(sel_pos(pe, unicode)) || in vc_do_selection()
282 atedge(pe, vc->vc_size_row)) in vc_do_selection()
284 if (is_space_on_vt(sel_pos(pe, unicode))) in vc_do_selection()
285 new_sel_end = pe; in vc_do_selection()
319 int ps, pe; in vc_selection() local
341 pe = v->ye * vc->vc_size_row + (v->xe << 1); in vc_selection()
342 if (ps > pe) /* make vc_sel.start <= vc_sel.end */ in vc_selection()
343 swap(ps, pe); in vc_selection()
350 return vc_do_selection(vc, v->sel_mode, ps, pe); in vc_selection()