Commit bc14941e authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

fix misplaced #ifdefs

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2317 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 2 additions and 9 deletions
+2 -9
...@@ -2211,9 +2211,7 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool ...@@ -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()); char *buf_mb = charalloc(mb_cur_max());
int buf_mb_len; int buf_mb_len;
#ifdef NANO_WIDE
bool bad_char; bool bad_char;
#endif
/* If dollars is TRUE, make room for the "$" at the end of the /* If dollars is TRUE, make room for the "$" at the end of the
* line. */ * line. */
...@@ -2271,13 +2269,8 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool ...@@ -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') { while (index < alloc_len - 1 && buf[start_index] != '\0') {
buf_mb_len = parse_mbchar(buf + start_index, buf_mb buf_mb_len = parse_mbchar(buf + start_index, buf_mb, &bad_char,
#ifdef NANO_WIDE NULL);
, &bad_char
#else
, NULL
#endif
, NULL);
if (*buf_mb == '\t') { if (*buf_mb == '\t') {
converted[index++] = converted[index++] =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment