diff options
author | msvensson@pilot.mysql.com <> | 2007-01-29 12:24:49 +0100 |
---|---|---|
committer | msvensson@pilot.mysql.com <> | 2007-01-29 12:24:49 +0100 |
commit | 3bc4d45e29f6b57a167b44d03978a1e98fa0ed4d (patch) | |
tree | aee29ceb81cee7c5b9bc9c4542dbe12195bf50b5 /cmd-line-utils | |
parent | 46b3a3d7dd89d937a292bd3f7e3a3d6c6ea7f41d (diff) | |
parent | d42b919a0b14dd2e0a120ca0e1043c9a3c46730e (diff) | |
download | mariadb-git-3bc4d45e29f6b57a167b44d03978a1e98fa0ed4d.tar.gz |
Merge pilot.mysql.com:/home/msvensson/mysql/bug19474/my50-bug19474
into pilot.mysql.com:/home/msvensson/mysql/bug19474/my51-bug19474
Diffstat (limited to 'cmd-line-utils')
-rw-r--r-- | cmd-line-utils/readline/display.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd-line-utils/readline/display.c b/cmd-line-utils/readline/display.c index 46b57325e33..b8b7ac445e6 100644 --- a/cmd-line-utils/readline/display.c +++ b/cmd-line-utils/readline/display.c @@ -524,14 +524,26 @@ rl_redisplay () wrap_offset = prompt_invis_chars_first_line = 0; } +#if defined (HANDLE_MULTIBYTE) #define CHECK_INV_LBREAKS() \ do { \ if (newlines >= (inv_lbsize - 2)) \ { \ inv_lbsize *= 2; \ inv_lbreaks = (int *)xrealloc (inv_lbreaks, inv_lbsize * sizeof (int)); \ + _rl_wrapped_line = (int *)xrealloc (_rl_wrapped_line, inv_lbsize * sizeof (int)); \ } \ } while (0) +#else +#define CHECK_INV_LBREAKS() \ + do { \ + if (newlines >= (inv_lbsize - 2)) \ + { \ + inv_lbsize *= 2; \ + inv_lbreaks = (int *)xrealloc (inv_lbreaks, inv_lbsize * sizeof (int)); \ + } \ + } while (0) +#endif #if defined (HANDLE_MULTIBYTE) #define CHECK_LPOS() \ |