vim-patch:8.0.0607 (#6879)

Problem:    When creating a bufref, then using :bwipe and :new it might get
            the same memory and bufref_valid() returns true.
Solution:   Add br_fnum to check the buffer number didn't change.

45e5fd135d
This commit is contained in:
Daniel Hahler
2017-06-11 15:03:02 +02:00
committed by Justin M. Keyes
parent 90f20bd7b1
commit d0ff2000b2
7 changed files with 22 additions and 21 deletions

View File

@@ -961,7 +961,7 @@ static void set_option_value_for(char *key,
{
win_T *save_curwin = NULL;
tabpage_T *save_curtab = NULL;
bufref_T save_curbuf = { NULL, 0 };
bufref_T save_curbuf = { NULL, 0, 0 };
try_start();
switch (opt_type)