summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-07 06:45:33 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-07 06:45:33 -0800
commitf9aa664c0864243381957ec07fd3191f8c6ed566 (patch)
tree0aa12d2ad131ac92288157d913ffd076a2da1ade
parent35f6ab5a5aef3ad9c25f9ff618006e303920ee47 (diff)
downloadreadline-f9aa664c0864243381957ec07fd3191f8c6ed566.tar.gz
readline-f9aa664c0864243381957ec07fd3191f8c6ed566.tar.bz2
readline-f9aa664c0864243381957ec07fd3191f8c6ed566.zip
applied patch readline52-002
-rw-r--r--display.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/display.c b/display.c
index fe08861..8097919 100644
--- a/display.c
+++ b/display.c
@@ -561,14 +561,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 /* HANDLE_MULTIBYTE */
#if defined (HANDLE_MULTIBYTE)
#define CHECK_LPOS() \