Lines Matching refs:sel_start
40 static volatile int sel_start = -1; /* cleared by clear_selection */ variable
78 if (sel_start != -1) { in clear_selection()
79 highlight(sel_start, sel_end); in clear_selection()
80 sel_start = -1; in clear_selection()
265 if (sel_start == -1) /* no current selection */ in set_selection()
267 else if (new_sel_start == sel_start) in set_selection()
278 if (new_sel_start < sel_start) /* extend to left */ in set_selection()
279 highlight(new_sel_start, sel_start - 2); in set_selection()
281 highlight(sel_start, new_sel_start - 2); in set_selection()
288 sel_start = new_sel_start; in set_selection()
293 bp = kmalloc_array((sel_end - sel_start) / 2 + 1, multiplier, in set_selection()
304 for (i = sel_start; i <= sel_end; i += 2) { in set_selection()