From 49295d8b13dc8604d273f108dc67b0b60b669c3d Mon Sep 17 00:00:00 2001 From: Scoopta Date: Thu, 21 Nov 2019 21:23:45 -0800 Subject: [PATCH] run mode now searches by executable name only --- modes/run.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modes/run.c b/modes/run.c index 20ab045..37ad14f 100644 --- a/modes/run.c +++ b/modes/run.c @@ -32,7 +32,7 @@ void wofi_run_init() { } else { text = final_slash + 1; } - wofi_insert_widget(MODE, &text, node->line, &node->line, 1); + wofi_insert_widget(MODE, &text, text, &node->line, 1); map_put(cached, node->line, "true"); free(node->line); wl_list_remove(&node->link); @@ -60,7 +60,7 @@ void wofi_run_init() { stat(full_path, &info); if(access(full_path, X_OK) == 0 && S_ISREG(info.st_mode) && !map_contains(cached, full_path)) { char* text = strdup(entry->d_name); - wofi_insert_widget(MODE, &text, full_path, &full_path, 1); + wofi_insert_widget(MODE, &text, text, &full_path, 1); free(text); } free(full_path);