changeset 18086:9d6832a5426f v8.1.2038

patch 8.1.2038: has('vimscript-4') is always 0 Commit: https://github.com/vim/vim/commit/af9143833865a2d8311e57313023271720442f90 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 15 17:49:10 2019 +0200 patch 8.1.2038: has('vimscript-4') is always 0 Problem: has('vimscript-4') is always 0. Solution: Add "vimscript-4" to the feature table. (Naruhiko Nishino, closes #4941)
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Sep 2019 18:00:03 +0200
parents 19946bad23ce
children 4dd656f53e67
files src/evalfunc.c src/testdir/test_eval_stuff.vim src/version.c
diffstat 3 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -3771,6 +3771,7 @@ f_has(typval_T *argvars, typval_T *rettv
 	"vimscript-1",
 	"vimscript-2",
 	"vimscript-3",
+	"vimscript-4",
 	"virtualedit",
 	"visual",
 	"visualextra",
--- a/src/testdir/test_eval_stuff.vim
+++ b/src/testdir/test_eval_stuff.vim
@@ -194,6 +194,7 @@ endfunc
 
 scriptversion 4
 func Test_vvar_scriptversion4()
+  call assert_true(has('vimscript-4'))
   call assert_equal(17, 017)
   call assert_equal(18, 018)
   call assert_equal(64, 0b1'00'00'00)
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2038,
+/**/
     2037,
 /**/
     2036,