mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
Ticket #3593: Find file: empty file name matches any file name.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
47a86b3362
commit
ebd6c95e83
@ -772,8 +772,11 @@ find_parameters (char **start_dir, ssize_t * start_dir_len,
|
|||||||
|
|
||||||
*content = (options.content_use && in_with->buffer[0] != '\0')
|
*content = (options.content_use && in_with->buffer[0] != '\0')
|
||||||
? g_strdup (in_with->buffer) : NULL;
|
? g_strdup (in_with->buffer) : NULL;
|
||||||
|
if (in_name->buffer[0] != '\0')
|
||||||
|
*pattern = g_strdup (in_name->buffer);
|
||||||
|
else
|
||||||
|
*pattern = g_strdup (options.file_pattern ? "*" : ".*");
|
||||||
*start_dir = in_start->buffer[0] != '\0' ? in_start->buffer : (char *) ".";
|
*start_dir = in_start->buffer[0] != '\0' ? in_start->buffer : (char *) ".";
|
||||||
*pattern = g_strdup (in_name->buffer);
|
|
||||||
if (in_start_dir != INPUT_LAST_TEXT)
|
if (in_start_dir != INPUT_LAST_TEXT)
|
||||||
g_free (in_start_dir);
|
g_free (in_start_dir);
|
||||||
in_start_dir = g_strdup (*start_dir);
|
in_start_dir = g_strdup (*start_dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user