The text used for searches is no longer the same as the text displayed, this allows for a lot more powerful searching especially in drun mode

This commit is contained in:
Scoopta
2019-10-28 14:17:06 -07:00
parent 84ffcb589d
commit da56f43d57
5 changed files with 30 additions and 23 deletions

View File

@@ -23,7 +23,7 @@ void dmenu_init() {
struct cache_line* node, *tmp;
wl_list_for_each_safe(node, tmp, cache, link) {
wofi_insert_widget(node->line, node->line);
wofi_insert_widget(node->line, node->line, node->line);
map_put(cached, node->line, "true");
free(node->line);
wl_list_remove(&node->link);
@@ -42,7 +42,7 @@ void dmenu_init() {
if(map_contains(cached, line)) {
continue;
}
wofi_insert_widget(line, line);
wofi_insert_widget(line, line, line);
}
free(line);
map_free(cached);