Skip to contentSkip to conversation

gfs2_edit: Don't move cursor when displaying indirect blocks

PATCH New Andrew Price 1 participant 1 message Sep 13, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gfs2_edit: Don't move cursor when displaying indirect blocks

This move() call moves the cursor to column 9 which can cause already printed characters to be overwritten in interactive mode. Remove it so that the lines are formatted as in command line mode.

Before: " 24: 0x180x5106 / 20742"
After:  " 24: 0x18 => 0x5106 / 20742"
---
 gfs2/edit/extended.c | 2 --
 1 file changed, 2 deletions(-)
gfs2/edit/extended.c +0 -2
index d24d7550..f38fc7bf 100644
@@ -178,8 +178,6 @@ static int display_indirect(struct iinfo *ind, int indblocks, int level,
 				print_gfs2("   ");
 		}
 		print_gfs2("%d: 0x%"PRIx64" => ", pndx, ind->ii[pndx].ptroff);
-		if (termlines)
-			move(line,9);
 		print_gfs2("0x%"PRIx64" / %"PRId64, ind->ii[pndx].block,
 			   ind->ii[pndx].block);
 		if (termlines) {
Signature · 1 line
2.21.0