aboutsummaryrefslogtreecommitdiff
path: root/wmenu-run.c
diff options
context:
space:
mode:
Diffstat (limited to 'wmenu-run.c')
-rw-r--r--wmenu-run.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wmenu-run.c b/wmenu-run.c
index dc86b6d..1b7b8c1 100644
--- a/wmenu-run.c
+++ b/wmenu-run.c
@@ -20,10 +20,11 @@ static void read_items(struct menu *menu) {
if (ent->d_name[0] == '.') {
continue;
}
- menu_add_item(menu, strdup(ent->d_name), true);
+ menu_add_item(menu, strdup(ent->d_name));
}
closedir(dir);
}
+ menu_sort_and_deduplicate(menu);
free(path);
}