← Commit list

9a4100cf5

Denys Vlasenko
Denys Vlasenko
2017-09-14
SUCCESS Duration: 143s

Subject

hexedit: position in correct column on "goto" command

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/hexedit.c+4 -2
@@ -424,9 +424,11 @@ int hexedit_main(int argc UNUSED_PARAM, char **argv)
if (t < 0)
cnt = t = 0;
G.offset = t;
- remap(0);
+ remap(cnt & 0xf);
redraw();
- cnt /= 16;
+ if (cnt & 0xf)
+ printf(ESC"[%uC", (cnt & 0xf) * 3); /* cursor right 3*i */
+ cnt >>= 4;
if (cnt)
goto k_down;
break;