/*{{{ Draw */
-void wedln_draw_completions(WEdln *wedln, bool complete)
+void wedln_draw_completions(WEdln *wedln, int mode)
{
WRectangle geom;
get_completions_geom(wedln, G_CURRENT, &geom);
draw_listing(WEDLN_BRUSH(wedln), &geom, &(wedln->compl_list),
- complete, GR_ATTR(selection));
+ mode, GR_ATTR(selection));
}
}
: GR_ATTR(inactive));
if(completions)
- wedln_draw_completions(wedln, FALSE);
+ wedln_draw_completions(wedln, LISTING_DRAW_ALL);
wedln_draw_textarea(wedln);
input_refit((WInput*)wedln);
if(w==REGION_GEOM(wedln).w && h==REGION_GEOM(wedln).h)
- wedln_draw_completions(wedln, TRUE);
+ wedln_draw_completions(wedln, LISTING_DRAW_COMPLETE);
}
if(wedln->compl_list.strs==NULL)
return;
if(scrollup_listing(&(wedln->compl_list)))
- wedln_draw_completions(wedln, TRUE);
+ wedln_draw_completions(wedln, LISTING_DRAW_COMPLETE);
}
if(wedln->compl_list.strs==NULL)
return;
if(scrolldown_listing(&(wedln->compl_list)))
- wedln_draw_completions(wedln, TRUE);
+ wedln_draw_completions(wedln, LISTING_DRAW_COMPLETE);
}
static void wedln_do_select_completion(WEdln *wedln, int n)
{
- bool complredraw=listing_select(&(wedln->compl_list), n);
- wedln_draw_completions(wedln, complredraw);
+ bool redraw=listing_select(&(wedln->compl_list), n);
+ wedln_draw_completions(wedln, redraw);
update_nocompl++;
edln_set_completion(&(wedln->edln), wedln->compl_list.strs[n],