mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 06:18:16 +00:00
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:

committed by
Justin M. Keyes

parent
b42c80e561
commit
3aca372ac8
@@ -3603,7 +3603,7 @@ int build_stl_str_hl(
|
|||||||
|
|
||||||
// Store the current buffer number as a string variable
|
// Store the current buffer number as a string variable
|
||||||
vim_snprintf((char *)tmp, sizeof(tmp), "%d", curbuf->b_fnum);
|
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;
|
buf_T *o_curbuf = curbuf;
|
||||||
win_T *o_curwin = curwin;
|
win_T *o_curwin = curwin;
|
||||||
|
Reference in New Issue
Block a user