0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.2-325

This commit is contained in:
Bram Moolenaar
2009-12-31 13:53:33 +00:00
parent 742d1ecd17
commit 70d60e9da1
2 changed files with 9 additions and 0 deletions

View File

@@ -2981,6 +2981,13 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
if (fname == NULL || *fname == NUL) /* safety check */ if (fname == NULL || *fname == NUL) /* safety check */
return FAIL; return FAIL;
if (buf->b_ml.ml_mfp == NULL)
{
/* This can happen during startup when there is a stray "w" in the
* vimrc file. */
EMSG(_(e_emptybuf));
return FAIL;
}
/* /*
* Disallow writing from .exrc and .vimrc in current directory for * Disallow writing from .exrc and .vimrc in current directory for

View File

@@ -681,6 +681,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
325,
/**/ /**/
324, 324,
/**/ /**/