mc/mc-delcheck.patch

14 lines
487 B
Diff
Raw Normal View History

--- mc-4.6.1a/src/file.c.delcheck 2006-01-11 20:02:10.000000000 +0100
+++ mc-4.6.1a/src/file.c 2006-01-11 21:38:45.000000000 +0100
@@ -1758,6 +1758,10 @@ panel_operate (void *source_panel, FileO
free_linklist (&linklist);
free_linklist (&dest_dirs);
+ /* Update panel contents to avoid actions on deleted files */
+ update_panels (UP_RELOAD, UP_KEEPSEL);
+ repaint_screen ();
+
if (single_entry) {
if (force_single) {
source = selection (panel)->fname;