#1021710 "r"eplacing high nibble doesn't take effect

Package:
hexer
Source:
hexer
Description:
interactive binary editor with a Vi-like interface
Submitter:
Philipp Marek
Date:
2026-08-27 07:31:03 UTC
Severity:
normal
Tags:
#1021710#5
Date:
2022-10-13 11:41:36 UTC
From:
To:
Replacing a nibble (only) has no effect; but the display indicates
otherwise.

To reproduce:

    $ echo foo > bar
    $ hd bar
    00000000  66 6f 6f 0a                                       |foo.|
    00000004

    $ hexer bar

Now press these keys: r1<ESC>
Now hexer shows

    00000000:  16 6f 6f 0a -- -- -- --  -- -- -- -- -- -- -- --  foo.------------

Press :wq<CR>; hexer quits.

    $ echo $?
    0

No error reported.

But the file isn't modified:

    $ hd bar
    00000000  66 6f 6f 0a                                       |foo.|
    00000004


Scrolling away and back shows the unmodified byte; but that doesn't work
for small files, and the intermediate display shows the expected change.

Hexer should also accept single-nibble changes!

#1021710#10
Date:
2022-10-19 05:19:48 UTC
From:
To:
control: tag -1 + confirmed upstream

Thanks for your interest in hexer! This is related to another bug
I noticed recently; I will try to fix it in the next couple of days.

G'luck,
Peter

#1021710#17
Date:
2026-08-27 07:21:56 UTC
From:
To:
Hi Peter,

sorry if I sound impatient, but I just stumbled upon that again.

Any updates?


Regards,

Phil