mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(set_display_type): ret rid of string reduplication.
This commit is contained in:
parent
1fea17b052
commit
387f41f9ce
@ -980,13 +980,7 @@ set_display_type (int num, panel_view_mode_t type)
|
||||
/* Restoring saved path from panels.ini for nonlist panel */
|
||||
/* when it's first creation (for example view_info) */
|
||||
if (old_widget == NULL && type != view_listing)
|
||||
{
|
||||
char *panel_dir;
|
||||
|
||||
panel_dir = _vfs_get_cwd ();
|
||||
panels[num].last_saved_dir = g_strdup (panel_dir);
|
||||
g_free (panel_dir);
|
||||
}
|
||||
panels[num].last_saved_dir = _vfs_get_cwd ();
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user