diff options
author | Daniel Hahler <github@thequod.de> | 2018-08-06 03:37:15 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-08-06 03:37:15 +0200 |
commit | 3aca372ac88b4864c2da00780c01f207bdc58435 (patch) | |
tree | 1a9d38bb006c0fac3cb7bf02ccf33e874596e63a | |
parent | b42c80e561c15fd49112dc46a7de04dd061a3483 (diff) | |
download | rneovim-3aca372ac88b4864c2da00780c01f207bdc58435.tar.gz rneovim-3aca372ac88b4864c2da00780c01f207bdc58435.tar.bz2 rneovim-3aca372ac88b4864c2da00780c01f207bdc58435.zip |
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)
https://github.com/vim/vim/commit/3cb4448b8a5c0192988f4e349aba6d7a91a9a4bd
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index a8d29a3a53..3020c29709 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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; |