Fix regression, set selected_item_is_drawn to True when selected has been drawn.
This commit is contained in:
parent
4451e9099e
commit
6161fc2130
|
@ -266,13 +266,14 @@ redraw(void)
|
|||
for(item = globalconf.items; item && geometry.width > 0; item = item->next)
|
||||
if(item->match)
|
||||
{
|
||||
if(item == globalconf.item_selected)
|
||||
selected_item_is_drawn = True;
|
||||
draw_item(item, geometry);
|
||||
len = MARGIN + draw_textwidth(globalconf.display, globalconf.font, item->data);
|
||||
geometry.x += len;
|
||||
geometry.width -= len;
|
||||
}
|
||||
|
||||
|
||||
/* we have an item selected but not drawn, so redraw in the other side */
|
||||
if(globalconf.item_selected && !selected_item_is_drawn)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue