diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-05-18 22:10:28 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-05-18 22:10:28 +0000 |
commit | d9d305836e1f3af1577d438642b3c1f9daba7db6 (patch) | |
tree | 8f3f167531adb63063c45929f3eab1f11ae8e442 /src/vim.h | |
parent | d8a4e563d0827c88caea9baf97f70083737fb9c9 (diff) | |
download | vim-git-d9d305836e1f3af1577d438642b3c1f9daba7db6.tar.gz |
updated for version 7.0072
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1227,7 +1227,15 @@ enum hlf_value #define LSIZE 512 /* max. size of a line in the tags file */ #define IOSIZE (1024+1) /* file i/o and sprintf buffer size */ -#define MSG_BUF_LEN 80 /* length of buffer for small messages */ + +#ifdef FEAT_MBYTE +# define MSG_BUF_LEN 480 /* length of buffer for small messages */ +# define MSG_BUF_CLEN (MSG_BUF_LEN / 6) /* cell length (worst case: utf-8 + takes 6 bytes for one cell) */ +#else +# define MSG_BUF_LEN 80 /* length of buffer for small messages */ +# define MSG_BUF_CLEN MSG_BUF_LEN /* cell length */ +#endif #if defined(AMIGA) || defined(__linux__) || defined(__QNX__) || defined(__CYGWIN32__) || defined(_AIX) # define TBUFSZ 2048 /* buffer size for termcap entry */ |