gfs2-utils: master - gfs2_edit: fix page down on rindex
Bob Peterson
rpeterso at fedoraproject.org
Thu Oct 14 14:26:04 UTC 2010
Gitweb: http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=006099ae1f0d3074906d54b6d6086b1bca739bc5
Commit: 006099ae1f0d3074906d54b6d6086b1bca739bc5
Parent: 1993ad156069a36f3f3a37df25bb4648b54b2080
Author: Bob Peterson <bob at ganesha.(none)>
AuthorDate: Mon Oct 4 15:21:52 2010 -0500
Committer: Bob Peterson <rpeterso at redhat.com>
CommitterDate: Thu Oct 14 09:03:12 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
---
gfs2/edit/extended.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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);
More information about the cluster-commits
mailing list