1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar 2019-04-20 21:54:28 +02:00
parent abc7c7fc5a
commit 93a4879c20
3 changed files with 6 additions and 0 deletions

View File

@ -6624,6 +6624,7 @@ f_has(typval_T *argvars, typval_T *rettv)
#endif
"vimscript-1",
"vimscript-2",
"vimscript-3",
"virtualedit",
"visual",
"visualextra",

View File

@ -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

View File

@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1190,
/**/
1189,
/**/