mirror of
https://github.com/vim/vim.git
synced 2025-10-14 07:04:10 -04:00
updated for version 7.3.535
Problem: Many #ifdefs for MB_MAXBYTES. Solution: Also define MB_MAXBYTES without the +multi_byte feature. Fix places where the buffer didn't include space for a NUL byte.
This commit is contained in:
@@ -1066,7 +1066,7 @@ arabic_shape(c, ccp, c1p, prev_c, prev_c1, next_c)
|
||||
|
||||
if (curr_c != c && ccp != NULL)
|
||||
{
|
||||
char_u buf[MB_MAXBYTES];
|
||||
char_u buf[MB_MAXBYTES + 1];
|
||||
|
||||
/* Update the first byte of the character. */
|
||||
(*mb_char2bytes)(curr_c, buf);
|
||||
|
Reference in New Issue
Block a user