nano

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

commit 03ecbf3d55456dbba3044898e7f880f8185f33e7
parent 81aebeb2a9cfb5d780a736f5d1c8d6dfb44ca497
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 28 Apr 2017 13:52:15 +0200

tweaks: remove a superfluous check

The mbwidth() function itself checks whether UTF-8 is being used
and does the right thing.

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

diff --git a/src/winio.c b/src/winio.c @@ -1852,7 +1852,7 @@ char *display_string(const char *buf, size_t start_col, size_t span, } } #ifdef ENABLE_UTF8 - else if (using_utf8() && mbwidth(buf) == 2) { + else if (mbwidth(buf) == 2) { if (column >= start_col) { converted[index++] = ' '; start_col++;