vim-patch:8.1.0240: g:actual_curbuf set in wrong scope (#8818)

Problem:    g:actual_curbuf set in wrong scope. (Daniel Hahler)
Solution:   Prepend the "g:" name space. (closes vim/vim#3279)
3cb4448b8a
This commit is contained in:
Daniel Hahler 2018-08-06 03:37:15 +02:00 committed by Justin M. Keyes
parent b42c80e561
commit 3aca372ac8

View File

@ -3603,7 +3603,7 @@ int build_stl_str_hl(
// Store the current buffer number as a string variable
vim_snprintf((char *)tmp, sizeof(tmp), "%d", curbuf->b_fnum);
set_internal_string_var((char_u *)"actual_curbuf", tmp);
set_internal_string_var((char_u *)"g:actual_curbuf", tmp);
buf_T *o_curbuf = curbuf;
win_T *o_curwin = curwin;