forked from RepoMirrors/bemenu
This is actually better without the count check.
This commit is contained in:
parent
590c5d9f85
commit
dfdb810099
@ -488,12 +488,10 @@ void bmMenuFilter(bmMenu *menu)
|
||||
_bmItemListSetItemsNoCopy(&menu->filtered, filtered, count);
|
||||
menu->index = selected;
|
||||
|
||||
if (count) {
|
||||
if (menu->oldFilter)
|
||||
free(menu->oldFilter);
|
||||
if (menu->oldFilter)
|
||||
free(menu->oldFilter);
|
||||
|
||||
menu->oldFilter = _bmStrdup(menu->filter);
|
||||
}
|
||||
menu->oldFilter = _bmStrdup(menu->filter);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user