summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-30 18:54:39 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-30 18:54:39 +0000
commitc9b4b05b3544b434730eb218e848a1a441d5ffb2 (patch)
treec1550ddf398d2030ed25ee98e8342fcb41ac1c87 /src/ops.c
parentaa35dd1667c5903cdcc32ebe10f27bc6683c68a1 (diff)
downloadvim-git-c9b4b05b3544b434730eb218e848a1a441d5ffb2.tar.gz
updated for version 7.0gv7.0g
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index 732323e88..71edc5e12 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -4349,7 +4349,11 @@ fex_format(lnum, count, c)
int use_sandbox = was_set_insecurely((char_u *)"formatexpr",
OPT_LOCAL);
int r;
- char_u buf[NUMBUFLEN];
+#ifdef FEAT_MBYTE
+ char_u buf[MB_MAXBYTES];
+#else
+ char_u buf[2];
+#endif
/*
* Set v:lnum to the first line number and v:count to the number of lines.