summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-06-07 21:00:02 +0000
committerBram Moolenaar <Bram@vim.org>2005-06-07 21:00:02 +0000
commitb765d63491c7daec0654a4139bb3b45ceab6c218 (patch)
treed58cfb1d9e86404c5f856ba90598d254320ef23f /src/ex_docmd.c
parent86bc1fb004ce46cf16c8c9aad8f8556c4e529d04 (diff)
downloadvim-b765d63491c7daec0654a4139bb3b45ceab6c218.zip
updated for version 7.0082
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 503be3fec..09e12bcc0 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -222,8 +222,7 @@ static void ex_popup __ARGS((exarg_T *eap));
#endif
#ifndef FEAT_SYN_HL
# define ex_syntax ex_ni
-#endif
-#if !defined(FEAT_SYN_HL) || !defined(FEAT_MBYTE)
+# define ex_spell ex_ni
# define ex_mkspell ex_ni
#endif
#ifndef FEAT_MZSCHEME
@@ -9906,7 +9905,7 @@ ex_viminfo(eap)
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG) || defined(PROTO)
/*
* Make a dialog message in "buff[IOSIZE]".
- * "format" must contain "%.*s".
+ * "format" must contain "%s".
*/
void
dialog_msg(buff, format, fname)
@@ -9914,15 +9913,9 @@ dialog_msg(buff, format, fname)
char *format;
char_u *fname;
{
- int len;
-
if (fname == NULL)
fname = (char_u *)_("Untitled");
- len = (int)STRLEN(format) + (int)STRLEN(fname);
- if (len >= IOSIZE)
- sprintf((char *)buff, format, (int)(IOSIZE - STRLEN(format)), fname);
- else
- sprintf((char *)buff, format, (int)STRLEN(fname), fname);
+ vim_snprintf((char *)buff, IOSIZE, format, fname);
}
#endif