diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/zle_misc.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 319d8eb62..dc701050a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-23 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * unposted: Src/Zle/zle_misc.c: overwrite mode without + MULTIBYTE_SUPPORT should be as before. + 2008-04-23 Peter Stephenson <pws@csr.com> * 24867: Src/system.h: looks like we need _XOPEN_SOURCE_EXTENDED diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c index 554830244..8379b2333 100644 --- a/Src/Zle/zle_misc.c +++ b/Src/Zle/zle_misc.c @@ -49,7 +49,9 @@ doinsert(ZLE_STRING_T zstr, int len) if (insmode) spaceinline(m * len); - else { + else +#ifdef MULTIBYTE_SUPPORT + { int pos = zlecs, diff, i; /* @@ -94,6 +96,10 @@ doinsert(ZLE_STRING_T zstr, int len) shiftchars(zlecs, diff); } } +#else + if (zlecs + m * len > zlell) + spaceinline(zlecs + m * len - zlell); +#endif while (m--) for (s = zstr, count = len; count; s++, count--) zleline[zlecs++] = *s; |