Merge branch '2312_lost_panelize'

* 2312_lost_panelize:
  Ticket #2312: panelize content is lost when doing F5/F6/F8 on a file on the other panel.
This commit is contained in:
Andrew Borodin 2011-05-30 17:30:56 +04:00
commit 23308648e4

View File

@ -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 ();
}