Skip to content

Commit 3cb4448

Browse files
committed
patch 8.1.0240: g:actual_curbuf set in wrong scope
Problem: g:actual_curbuf set in wrong scope. (Daniel Hahler) Solution: Prepend the "g:" name space. (closes #3279)
1 parent 218beb3 commit 3cb4448

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4229,7 +4229,7 @@ build_stl_str_hl(
42294229

42304230
#ifdef FEAT_EVAL
42314231
vim_snprintf((char *)tmp, sizeof(tmp), "%d", curbuf->b_fnum);
4232-
set_internal_string_var((char_u *)"actual_curbuf", tmp);
4232+
set_internal_string_var((char_u *)"g:actual_curbuf", tmp);
42334233

42344234
save_curbuf = curbuf;
42354235
save_curwin = curwin;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,8 @@ static char *(features[]) =
794794

795795
static int included_patches[] =
796796
{ /* Add new patch number below this line */
797+
/**/
798+
240,
797799
/**/
798800
239,
799801
/**/

0 commit comments

Comments
 (0)