nano

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

commit 8249f3560f59a5ee5c21c3d79841372387c89ea6
parent dd1b16cd5439c67126b4a5eb9612a6abae006d1d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 20 Jul 2020 19:46:27 +0200

tweaks: normalize the indentation after the previous change

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

diff --git a/src/chars.c b/src/chars.c @@ -197,20 +197,20 @@ int mbwidth(const char *c) return 1; } -/* Convert the Unicode value in code to a multibyte character, if possible. +/* Convert the given Unicode value to a multibyte character, if possible. * If the conversion succeeds, return the (dynamically allocated) multibyte * character and its length. Otherwise, return a length of zero. */ char *make_mbchar(long code, int *length) { char *mb_char = charalloc(MAXCHARLEN); - *length = wctomb(mb_char, (wchar_t)code); + *length = wctomb(mb_char, (wchar_t)code); - /* Reject invalid Unicode characters. */ - if (*length < 0 || !is_valid_unicode((wchar_t)code)) { - IGNORE_CALL_RESULT(wctomb(NULL, 0)); - *length = 0; - } + /* Reject invalid Unicode characters. */ + if (*length < 0 || !is_valid_unicode((wchar_t)code)) { + IGNORE_CALL_RESULT(wctomb(NULL, 0)); + *length = 0; + } return mb_char; }