mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -1702,6 +1702,11 @@ buflist_new(ffname, sfname, lnum, flags)
|
|||||||
#endif
|
#endif
|
||||||
/* buf->b_nwindows = 0; why was this here? */
|
/* buf->b_nwindows = 0; why was this here? */
|
||||||
free_buffer_stuff(buf, FALSE); /* delete local variables et al. */
|
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
|
#ifdef FEAT_KEYMAP
|
||||||
/* need to reload lmaps and set b:keymap_name */
|
/* need to reload lmaps and set b:keymap_name */
|
||||||
curbuf->b_kmap_state |= KEYMAP_INIT;
|
curbuf->b_kmap_state |= KEYMAP_INIT;
|
||||||
|
@@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
718,
|
||||||
/**/
|
/**/
|
||||||
717,
|
717,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user