mirror of https://github.com/MidnightCommander/mc
Ticket #2312: panelize content is lost when doing F5/F6/F8 on a file on the other panel.
(panel_operate): don't update panelize content in the other panel before copy/move/delete operation. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d74d0b74e3
commit
f147633f41
|
@ -2309,7 +2309,13 @@ panel_operate (void *source_panel, FileOperation operation, gboolean force_singl
|
|||
/* Update panel contents to avoid actions on deleted files */
|
||||
if (!panel->is_panelized)
|
||||
{
|
||||
update_panels (UP_RELOAD, UP_KEEPSEL);
|
||||
panel_update_flags_t flags = UP_RELOAD;
|
||||
|
||||
/* don't update panelized panel */
|
||||
if (get_other_type () == view_listing && other_panel->is_panelized)
|
||||
flags |= UP_ONLY_CURRENT;
|
||||
|
||||
update_panels (flags, UP_KEEPSEL);
|
||||
repaint_screen ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue