Lines Matching refs:sel_start
39 static volatile int sel_start = -1; /* cleared by clear_selection */ variable
75 if (sel_start != -1) { in clear_selection()
76 highlight(sel_start, sel_end); in clear_selection()
77 sel_start = -1; in clear_selection()
270 if (sel_start == -1) /* no current selection */ in set_selection()
272 else if (new_sel_start == sel_start) in set_selection()
283 if (new_sel_start < sel_start) /* extend to left */ in set_selection()
284 highlight(new_sel_start, sel_start - 2); in set_selection()
286 highlight(sel_start, new_sel_start - 2); in set_selection()
293 sel_start = new_sel_start; in set_selection()
298 bp = kmalloc(((sel_end-sel_start)/2+1)*multiplier, GFP_KERNEL); in set_selection()
308 for (i = sel_start; i <= sel_end; i += 2) { in set_selection()