diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-11-20 12:16:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-11-20 12:16:58 +0100 |
commit | 0ac24e1ef4b099c95c55261bc2d227ca5707d295 (patch) | |
tree | 7fa2ec7c489f1e73e4b64f98dd2de32c0e44e301 /src/buffer.c | |
parent | b03162642798ba6a8ab9e685bfaddda708a6b68a (diff) | |
download | vim-git-0ac24e1ef4b099c95c55261bc2d227ca5707d295.tar.gz |
updated for version 7.3.718v7.3.718
Problem: When re-using the current buffer the buffer-local options stay.
Solution: Re-initialize the buffer-local options. (Christian Brabandt)
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 05da2860d..7f0c106e1 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; |