From 84b26abf78d5a0af4cb275479d630ce96d38712a Mon Sep 17 00:00:00 2001 From: Scoopta Date: Mon, 2 Dec 2019 12:28:57 -0800 Subject: [PATCH] Oops, that was for debugging --- modes/run.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modes/run.c b/modes/run.c index fa5dc9a..cfb272c 100644 --- a/modes/run.c +++ b/modes/run.c @@ -42,7 +42,7 @@ void wofi_run_init(struct map* config) { } else { text = final_slash + 1; } - wofi_insert_widget(MODE, &node->line, text, &node->line, 1); + wofi_insert_widget(MODE, &text, text, &node->line, 1); map_put(cached, node->line, "true"); map_put(entries, text, "true"); free(node->line); @@ -72,7 +72,7 @@ void wofi_run_init(struct map* config) { if(access(full_path, X_OK) == 0 && S_ISREG(info.st_mode) && !map_contains(cached, full_path) && (show_all || !map_contains(entries, entry->d_name))) { char* text = strdup(entry->d_name); map_put(entries, text, "true"); - wofi_insert_widget(MODE, &full_path, text, &full_path, 1); + wofi_insert_widget(MODE, &text, text, &full_path, 1); free(text); } free(full_path);