[PATCH] repaint other panel after Alt-O



Hi,

With current CVS, when a directory contains more files than fit on the screen, and the cursor is on the files "below the bottom edge", Alt-O selects this file in the other panel, but it still displays the entries beginning with the first one. The attached patch fixes this iissue by explicitly redrawing the panel when do_select sets top_file to something higher than zero.

Regards,
--
Jindrich Makovicka
Index: screen.c
===================================================================
RCS file: /cvsroot/mc/mc/src/screen.c,v
retrieving revision 1.169
diff -u -b -B -r1.169 screen.c
--- screen.c	31 Aug 2003 23:29:50 -0000	1.169
+++ screen.c	9 Sep 2003 18:46:33 -0000
@@ -1999,6 +1999,9 @@
     /* try to select current filename on the other panel */
     if (!panel->is_panelized) {
 	try_to_select (other_panel, selection (panel)->fname);
+	if (other_panel->top_file > 0) {
+	    paint_panel(other_panel);
+	}
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]