From: Bram Moolenaar Date: Mon, 30 Apr 2012 15:04:52 +0000 (+0200) Subject: updated for version 7.3.511 X-Git-Tag: v7.3.511 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7da9c37a17745e0021e59467e55ee11976752603;p=thirdparty%2Fvim.git updated for version 7.3.511 Problem: Using a FileReadCmd autocommand that does ":e! {file}" may cause a crash. (Christian Brabandt) Solution: Properly restore curwin->w_s. --- diff --git a/src/fileio.c b/src/fileio.c index 52eb34b3bf..6fe1127454 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -8982,6 +8982,10 @@ win_found: && buf_valid(aco->new_curbuf) && aco->new_curbuf->b_ml.ml_mfp != NULL) { +# if defined(FEAT_SYN_HL) || defined(FEAT_SPELL) + if (curwin->w_s == &curbuf->b_s) + curwin->w_s = &aco->new_curbuf->b_s; +# endif --curbuf->b_nwindows; curbuf = aco->new_curbuf; curwin->w_buffer = curbuf; diff --git a/src/version.c b/src/version.c index 9352c70092..b2f9a986b2 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 511, /**/ 510, /**/