changeset 14453:95a03484df27 v8.1.0240

patch 8.1.0240: g:actual_curbuf set in wrong scope commit https://github.com/vim/vim/commit/3cb4448b8a5c0192988f4e349aba6d7a91a9a4bd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 5 13:22:26 2018 +0200 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 https://github.com/vim/vim/issues/3279)
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Aug 2018 13:30:05 +0200
parents afd3ea009e06
children 946e148b8e63
files src/buffer.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4229,7 +4229,7 @@ build_stl_str_hl(
 
 #ifdef FEAT_EVAL
 	    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);
 
 	    save_curbuf = curbuf;
 	    save_curwin = curwin;
--- a/src/version.c
+++ b/src/version.c
@@ -795,6 +795,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    240,
+/**/
     239,
 /**/
     238,