From 0ac24e1ef4b099c95c55261bc2d227ca5707d295 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 20 Nov 2012 12:16:58 +0100 Subject: [PATCH] updated for version 7.3.718 Problem: When re-using the current buffer the buffer-local options stay. Solution: Re-initialize the buffer-local options. (Christian Brabandt) --- src/buffer.c | 5 +++++ src/version.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/buffer.c b/src/buffer.c index 05da2860dd..7f0c106e13 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1702,6 +1702,11 @@ buflist_new(ffname, sfname, lnum, flags) #endif /* buf->b_nwindows = 0; why was this here? */ free_buffer_stuff(buf, FALSE); /* delete local variables et al. */ + + /* Init the options. */ + buf->b_p_initialized = FALSE; + buf_copy_options(buf, BCO_ENTER); + #ifdef FEAT_KEYMAP /* need to reload lmaps and set b:keymap_name */ curbuf->b_kmap_state |= KEYMAP_INIT; diff --git a/src/version.c b/src/version.c index 4bbb325c65..5e4a16bbc7 100644 --- a/src/version.c +++ b/src/version.c @@ -725,6 +725,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 718, /**/ 717, /**/