mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-11 18:32:53 +03:00
do_panelize_cd() is missing call to panelize_absolutize_if_needed().
Whenever we populate a panelized panel, we have to call panelize_absolute_if_needed(). Note: do_panelize_cd() implements the "Restore last panelization" command (see #3767). Note: We move the `panel->is_panelized = TRUE` line to the bottom for stylistic reason: to make it parallel to the other places where we have similar code. We may factor out this common code in the future. Signed-off-by: Mooffie <mooffie@gmail.com>
This commit is contained in:
parent
92eea68251
commit
d1062fc47c
@ -385,7 +385,6 @@ do_panelize_cd (WPanel * panel)
|
||||
|
||||
list = &panel->dir;
|
||||
list->len = panelized_panel.list.len;
|
||||
panel->is_panelized = TRUE;
|
||||
|
||||
panelized_same = vfs_path_equal (panelized_panel.root_vpath, panel->cwd_vpath);
|
||||
|
||||
@ -418,6 +417,10 @@ do_panelize_cd (WPanel * panel)
|
||||
list->list[i].sort_key = panelized_panel.list.list[i].sort_key;
|
||||
list->list[i].second_sort_key = panelized_panel.list.list[i].second_sort_key;
|
||||
}
|
||||
|
||||
panel->is_panelized = TRUE;
|
||||
panelize_absolutize_if_needed (panel);
|
||||
|
||||
try_to_select (panel, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user