Fixed dmenu caching
This commit is contained in:
parent
389cb8e299
commit
5afa0de598
@ -217,8 +217,11 @@ static struct map* load_cache(char* mode) {
|
|||||||
struct wl_list* cache = read_cache(mode);
|
struct wl_list* cache = read_cache(mode);
|
||||||
struct cache_line* node, *tmp;
|
struct cache_line* node, *tmp;
|
||||||
wl_list_for_each_reverse_safe(node, tmp, cache, link) {
|
wl_list_for_each_reverse_safe(node, tmp, cache, link) {
|
||||||
char* text = strrchr(node->line, '/');
|
char* text = NULL;
|
||||||
char* action = strchr(node->line, ' ') + 1;
|
char* action = action = strchr(node->line, ' ') + 1;
|
||||||
|
if(strcmp(mode, "run") == 0) {
|
||||||
|
text = strrchr(node->line, '/');
|
||||||
|
}
|
||||||
if(text == NULL) {
|
if(text == NULL) {
|
||||||
text = action;
|
text = action;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user