]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.718 v7.3.718
authorBram Moolenaar <Bram@vim.org>
Tue, 20 Nov 2012 11:16:58 +0000 (12:16 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 20 Nov 2012 11:16:58 +0000 (12:16 +0100)
Problem:    When re-using the current buffer the buffer-local options stay.
Solution:   Re-initialize the buffer-local options. (Christian Brabandt)

src/buffer.c
src/version.c

index 05da2860dd853bef7edfb6b30065a50c71d235b2..7f0c106e1318cbb01987a25339ff937ae44f2b96 100644 (file)
@@ -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;
index 4bbb325c6579b070ea3ed260e67db0122e51a728..5e4a16bbc75930abaa3ad08f91becf646f80e568 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    718,
 /**/
     717,
 /**/