aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/hexedit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/miscutils/hexedit.c b/miscutils/hexedit.c
index 1d683b7de..7e74e1f24 100644
--- a/miscutils/hexedit.c
+++ b/miscutils/hexedit.c
@@ -424,9 +424,11 @@ int hexedit_main(int argc UNUSED_PARAM, char **argv)
424 if (t < 0) 424 if (t < 0)
425 cnt = t = 0; 425 cnt = t = 0;
426 G.offset = t; 426 G.offset = t;
427 remap(0); 427 remap(cnt & 0xf);
428 redraw(); 428 redraw();
429 cnt /= 16; 429 if (cnt & 0xf)
430 printf(ESC"[%uC", (cnt & 0xf) * 3); /* cursor right 3*i */
431 cnt >>= 4;
430 if (cnt) 432 if (cnt)
431 goto k_down; 433 goto k_down;
432 break; 434 break;