A new user interface for you! Read more...

File gfs2_edit_fix_page_down_on_rindex.patch of Package cluster

commit 2ab214b05b52ff58ea6de70e6aed10f7592c2d9f
Author: Bob Peterson <bob@ganesha.(none)>
Date:   Mon Oct 4 15:21:52 2010 -0500

    gfs2_edit: fix page down on rindex
    
    This patch fixes a problem whereby the <page down> key was not
    scrolling through the rindex entries properly.
    
    rhbz#634623

diff --git a/gfs2/edit/extended.c b/gfs2/edit/extended.c
index c95593c..3c45060 100644
--- a/gfs2/edit/extended.c
+++ b/gfs2/edit/extended.c
@@ -167,7 +167,6 @@ static int display_indirect(struct iinfo *ind, int indblocks, int level,
 		eol(0);
 	}
 	start_line = line;
-	dsplines = termlines - line - 1;
 	for (pndx = start_row[dmode];
 		 (!termlines || pndx < termlines - start_line - 1
 		  + start_row[dmode]) && pndx < indblocks;
@@ -650,6 +649,7 @@ int display_extended(void)
 	struct gfs2_inode *tmp_inode;
 	struct gfs2_buffer_head *tmp_bh;
 
+	dsplines = termlines - line - 1;
 	/* Display any indirect pointers that we have. */
 	if (block_is_rindex()) {
 		tmp_bh = bread(&sbd, block);