diff --git a/src/filemanager/find.c b/src/filemanager/find.c index 4d4875054..a6f675ca5 100644 --- a/src/filemanager/find.c +++ b/src/filemanager/find.c @@ -1705,7 +1705,6 @@ find_file (void) ssize_t start_dir_len; char *filename = NULL, *dirname = NULL; int v; - gboolean dir_and_file_set; while (find_parameters (&start_dir, &start_dir_len, &ignore_dirs, &pattern, &content)) { @@ -1737,7 +1736,6 @@ find_file (void) } g_free (content); - dir_and_file_set = (dirname != NULL) && (filename != NULL); g_free (dirname); g_free (filename); @@ -1746,12 +1744,8 @@ find_file (void) if (v == B_PANELIZE) { - if (dir_and_file_set) - { - try_to_select (current_panel, NULL); - panel_re_sort (current_panel); - try_to_select (current_panel, NULL); - } + panel_re_sort (current_panel); + try_to_select (current_panel, NULL); break; } }