mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-09 01:21:25 +03:00
(find_cmd): add intermediate variable to simplify formatting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
258b52b2d1
commit
93a4b2ab79
@ -1931,13 +1931,18 @@ find_cmd (WPanel * panel)
|
||||
dirname_vpath = vfs_path_from_str (dirname);
|
||||
panel_cd (panel, dirname_vpath, cd_exact);
|
||||
vfs_path_free (dirname_vpath, TRUE);
|
||||
/* *INDENT-OFF* */
|
||||
|
||||
if (filename != NULL)
|
||||
panel_set_current_by_name (panel,
|
||||
filename + (content_pattern != NULL
|
||||
? strchr (filename + 4, ':') - filename + 1
|
||||
: 4));
|
||||
/* *INDENT-ON* */
|
||||
{
|
||||
size_t offset;
|
||||
|
||||
if (content_pattern == NULL)
|
||||
offset = 4;
|
||||
else
|
||||
offset = strchr (filename + 4, ':') - filename + 1;
|
||||
|
||||
panel_set_current_by_name (panel, filename + offset);
|
||||
}
|
||||
}
|
||||
else if (filename != NULL)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user