comparison src/buffer.c @ 3925:18e95db59826 v7.3.718

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)
author Bram Moolenaar <bram@vim.org>
date Tue, 20 Nov 2012 12:16:58 +0100
parents 8115f449a574
children 5e9730de25e9
comparison
equal deleted inserted replaced
3924:dbafa9387347 3925:18e95db59826
1700 if (aborting()) /* autocmds may abort script processing */ 1700 if (aborting()) /* autocmds may abort script processing */
1701 return NULL; 1701 return NULL;
1702 #endif 1702 #endif
1703 /* buf->b_nwindows = 0; why was this here? */ 1703 /* buf->b_nwindows = 0; why was this here? */
1704 free_buffer_stuff(buf, FALSE); /* delete local variables et al. */ 1704 free_buffer_stuff(buf, FALSE); /* delete local variables et al. */
1705
1706 /* Init the options. */
1707 buf->b_p_initialized = FALSE;
1708 buf_copy_options(buf, BCO_ENTER);
1709
1705 #ifdef FEAT_KEYMAP 1710 #ifdef FEAT_KEYMAP
1706 /* need to reload lmaps and set b:keymap_name */ 1711 /* need to reload lmaps and set b:keymap_name */
1707 curbuf->b_kmap_state |= KEYMAP_INIT; 1712 curbuf->b_kmap_state |= KEYMAP_INIT;
1708 #endif 1713 #endif
1709 } 1714 }