Lines Matching full:pe
252 int pe) in vc_do_selection() argument
260 new_sel_end = pe; in vc_do_selection()
273 spc = is_space_on_vt(sel_pos(pe, unicode)); in vc_do_selection()
274 for (new_sel_end = pe; ; pe += 2) { in vc_do_selection()
275 if ((spc && !is_space_on_vt(sel_pos(pe, unicode))) || in vc_do_selection()
276 (!spc && !inword(sel_pos(pe, unicode)))) in vc_do_selection()
278 new_sel_end = pe; in vc_do_selection()
279 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection()
285 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
289 highlight_pointer(pe); in vc_do_selection()
302 for (pe = new_sel_end + 2; ; pe += 2) in vc_do_selection()
303 if (!is_space_on_vt(sel_pos(pe, unicode)) || in vc_do_selection()
304 atedge(pe, vc->vc_size_row)) in vc_do_selection()
306 if (is_space_on_vt(sel_pos(pe, unicode))) in vc_do_selection()
307 new_sel_end = pe; in vc_do_selection()
341 int ps, pe; in vc_selection() local
364 pe = v->ye * vc->vc_size_row + (v->xe << 1); in vc_selection()
365 if (ps > pe) /* make vc_sel.start <= vc_sel.end */ in vc_selection()
366 swap(ps, pe); in vc_selection()
373 return vc_do_selection(vc, v->sel_mode, ps, pe); in vc_selection()