Fix regression, set selected_item_is_drawn to True when selected has been drawn.

This commit is contained in:
Julien Danjou 2008-03-08 10:04:20 +01:00
parent 4451e9099e
commit 6161fc2130
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{