#985367 "<visual> w file" writes whole file; deleting last byte broken

Package:
hexer
Source:
hexer
Description:
interactive binary editor with a Vi-like interface
Submitter:
Philipp Marek
Date:
2021-03-16 18:18:04 UTC
Severity:
normal
#985367#5
Date:
2021-03-16 18:13:56 UTC
From:
To:
When doing a visual selection in a file and trying to write it to disk
(via pressing ":" (this inserts the range) and then " w /tmp/file"),
the whole source file is written with a name of "/tmp/file<range>",
eg as "/tmp/font.ttf0x16a76,0x1b0b5".

Furthermore, with the cursor on the last byte "x" in normal mode doesn't
delete the byte; similarly, a visual range including the last byte
doesn't accept "x" to delete this range.