mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Ticket #2175: panelize doesn't honour current sorting.
After Find file -> Panelize files are shown with order of being found and sorting mode of current panel is not applied. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
607c6a21dc
commit
f0b1f55c19
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user