summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-05-18 22:10:28 +0000
committerBram Moolenaar <Bram@vim.org>2005-05-18 22:10:28 +0000
commitd9d305836e1f3af1577d438642b3c1f9daba7db6 (patch)
tree8f3f167531adb63063c45929f3eab1f11ae8e442 /src/vim.h
parentd8a4e563d0827c88caea9baf97f70083737fb9c9 (diff)
downloadvim-git-d9d305836e1f3af1577d438642b3c1f9daba7db6.tar.gz
updated for version 7.0072
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/vim.h b/src/vim.h
index fde8ac19b..ab2bb4280 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -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 */