nano

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

commit bc14941e34ec449535d3ff1d8b6bd95b1be649f8
parent 1b9d3f989803ec893bd13d4b8ef5734f4a369bb1
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 11 Feb 2005 20:23:00 +0000

fix misplaced #ifdefs


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2317 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/winio.c | 11++---------
1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -2211,9 +2211,7 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool char *buf_mb = charalloc(mb_cur_max()); int buf_mb_len; -#ifdef NANO_WIDE bool bad_char; -#endif /* If dollars is TRUE, make room for the "$" at the end of the * line. */ @@ -2271,13 +2269,8 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool } while (index < alloc_len - 1 && buf[start_index] != '\0') { - buf_mb_len = parse_mbchar(buf + start_index, buf_mb -#ifdef NANO_WIDE - , &bad_char -#else - , NULL -#endif - , NULL); + buf_mb_len = parse_mbchar(buf + start_index, buf_mb, &bad_char, + NULL); if (*buf_mb == '\t') { converted[index++] =