fix: account for caret notation width in text wrapping
Control characters displayed in caret notation (e.g. ^@ for NUL) occupy 2 terminal columns, but the width calculation treated them as 0-width. Add a char_width() helper that returns 2 for control characters, fixing incorrect line wrapping with --binary=as-text. Fixes #3631
This commit is contained in:
1 parent
4a38eab3ea
commit
fc94a0ec49
4 files changed
+33
-5
No files matched your search
BIN
Binary file not shown.
Reference in new issue
Block a user