# HG changeset patch # User vimboss # Date 1262267613 0 # Node ID be1d64f82db26bf7892605332aea6126d6343e47 # Parent 4c41f0da2a2e35b42334d091130440d1b1479e7b updated for version 7.2-325 diff --git a/src/fileio.c b/src/fileio.c --- a/src/fileio.c +++ b/src/fileio.c @@ -2981,6 +2981,13 @@ buf_write(buf, fname, sfname, start, end if (fname == NULL || *fname == NUL) /* safety check */ 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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 325, +/**/ 324, /**/ 323,