nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit d344c3d042c37de70b3880799e1cf84ea2c835b5
parent 3018ab4706b5764fe16ae061bdc1284583bb8be9
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Mon, 23 Oct 2017 14:20:25 -0500

display: don't cut off zero-width characters at the end of a chunk

This fixes https://savannah.gnu.org/bugs/?52258.
Reported-by: Peter Passchier <peter@passchier.net>

Diffstat:
Msrc/winio.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -1949,7 +1949,7 @@ char *display_string(const char *buf, size_t column, size_t span, bool isdata) #endif } - while (*buf != '\0' && column < beyond) { + while (*buf != '\0' && (column < beyond || mbwidth(buf) == 0)) { int charlength, charwidth = 1; if (*buf == ' ') {