]> granicus.if.org Git - vim/commitdiff
patch 8.1.2038: has('vimscript-4') is always 0 v8.1.2038
authorBram Moolenaar <Bram@vim.org>
Sun, 15 Sep 2019 15:49:10 +0000 (17:49 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 15 Sep 2019 15:49:10 +0000 (17:49 +0200)
Problem:    has('vimscript-4') is always 0.
Solution:   Add "vimscript-4" to the feature table. (Naruhiko Nishino,
            closes #4941)

src/evalfunc.c
src/testdir/test_eval_stuff.vim
src/version.c

index 67726923dcba362300d056ca2d2cfae4f4c842c7..b352ea9f8998d653f6fc7e98151dcf4b48271938 100644 (file)
@@ -3771,6 +3771,7 @@ f_has(typval_T *argvars, typval_T *rettv)
        "vimscript-1",
        "vimscript-2",
        "vimscript-3",
+       "vimscript-4",
        "virtualedit",
        "visual",
        "visualextra",
index 720f3094ef0130b32252c87cb6a6f67133807ff5..4e8b782f124c28b09b5762e75825dabef528e1bc 100644 (file)
@@ -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)
index 94ae34a480a865eb0ff05bcfe2476727320518a9..98e69d446fd0965a92108f9a97620454aa021882 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2038,
 /**/
     2037,
 /**/