nano

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

commit b4a5aedc6c97c21b6f2f5472422e9b7536ac345c
parent d6ed174d094dcb16713aba251c7bb7cb6c617a8a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri,  9 Apr 2021 16:18:08 +0200

tweaks: remove a misplaced (and nested) #ifdef

It was accidentally introduced two weeks ago by commit 1c010d8e.

Diffstat:
Msrc/chars.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/chars.c b/src/chars.c @@ -180,7 +180,6 @@ char control_mbrep(const char *c, bool isdata) * the number of bytes in the sequence, or -1 for an invalid sequence. */ int mbtowide(wchar_t *wc, const char *c) { -#ifdef ENABLE_UTF8 if ((signed char)*c < 0 && use_utf8) { unsigned char v1 = (unsigned char)c[0]; unsigned char v2 = (unsigned char)c[1] ^ 0x80; @@ -219,7 +218,6 @@ int mbtowide(wchar_t *wc, const char *c) } else return -1; } -#endif *wc = (unsigned int)*c; return 1;