changeset 16370:235a2b941498 v8.1.1190

patch 8.1.1190: has('vimscript-3') does not work commit https://github.com/vim/vim/commit/93a4879c2008bbd26aac072e7cdc65b3ce7c32a3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 20 21:54:28 2019 +0200 patch 8.1.1190: has('vimscript-3') does not work Problem: has('vimscript-3') does not work. Solution: Add "vimscript-3" to the list of features.
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Apr 2019 22:00:05 +0200
parents ecc488933737
children 8fddc4c1db12
files src/evalfunc.c src/testdir/test_eval_stuff.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -6624,6 +6624,7 @@ f_has(typval_T *argvars, typval_T *rettv
 #endif
 	"vimscript-1",
 	"vimscript-2",
+	"vimscript-3",
 	"virtualedit",
 	"visual",
 	"visualextra",
--- a/src/testdir/test_eval_stuff.vim
+++ b/src/testdir/test_eval_stuff.vim
@@ -126,6 +126,7 @@ endfunc
 
 scriptversion 2
 func Test_string_concat_scriptversion2()
+  call assert_true(has('vimscript-2'))
   let a = 'a'
   let b = 'b'
 
@@ -141,6 +142,7 @@ endfunc
 
 scriptversion 1
 func Test_string_concat_scriptversion1()
+  call assert_true(has('vimscript-1'))
   let a = 'a'
   let b = 'b'
 
@@ -156,6 +158,7 @@ endfunc
 
 scriptversion 3
 func Test_vvar_scriptversion3()
+  call assert_true(has('vimscript-3'))
   call assert_fails('echo version', 'E121:')
   call assert_false(exists('version'))
   let version = 1
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1190,
+/**/
     1189,
 /**/
     1188,