With current CVS, after pressing "End" while viewing a file, if seeks after the end, shows a blank screen and it is even impossible to move up using arrows or Page Up. The attached patch seems to fix the issue, although I didn't study the code, so cannot be sure if it's ok at all.
Regards, -- Jindrich Makovicka
Index: view.c =================================================================== RCS file: /cvsroot/mc/mc/src/view.c,v retrieving revision 1.227 diff -u -r1.227 view.c --- view.c 19 Apr 2005 21:27:03 -0000 1.227 +++ view.c 22 Apr 2005 08:58:15 -0000 @@ -1226,9 +1226,13 @@ return p; /* end of file or reading error -- stop going forward */ - if ((c = get_byte (view, p)) == -1) - return p; - + if ((c = get_byte (view, p)) == -1) { + if (upto) + return line; + else + return p; + } + if (view->text_wrap_mode) { if (c == '\r') continue; /* This characters is never displayed */
_______________________________________________ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel