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:
parent
abc7c7fc5a
commit
93a4879c20
@ -6624,6 +6624,7 @@ f_has(typval_T *argvars, typval_T *rettv)
|
|||||||
#endif
|
#endif
|
||||||
"vimscript-1",
|
"vimscript-1",
|
||||||
"vimscript-2",
|
"vimscript-2",
|
||||||
|
"vimscript-3",
|
||||||
"virtualedit",
|
"virtualedit",
|
||||||
"visual",
|
"visual",
|
||||||
"visualextra",
|
"visualextra",
|
||||||
|
@ -126,6 +126,7 @@ endfunc
|
|||||||
|
|
||||||
scriptversion 2
|
scriptversion 2
|
||||||
func Test_string_concat_scriptversion2()
|
func Test_string_concat_scriptversion2()
|
||||||
|
call assert_true(has('vimscript-2'))
|
||||||
let a = 'a'
|
let a = 'a'
|
||||||
let b = 'b'
|
let b = 'b'
|
||||||
|
|
||||||
@ -141,6 +142,7 @@ endfunc
|
|||||||
|
|
||||||
scriptversion 1
|
scriptversion 1
|
||||||
func Test_string_concat_scriptversion1()
|
func Test_string_concat_scriptversion1()
|
||||||
|
call assert_true(has('vimscript-1'))
|
||||||
let a = 'a'
|
let a = 'a'
|
||||||
let b = 'b'
|
let b = 'b'
|
||||||
|
|
||||||
@ -156,6 +158,7 @@ endfunc
|
|||||||
|
|
||||||
scriptversion 3
|
scriptversion 3
|
||||||
func Test_vvar_scriptversion3()
|
func Test_vvar_scriptversion3()
|
||||||
|
call assert_true(has('vimscript-3'))
|
||||||
call assert_fails('echo version', 'E121:')
|
call assert_fails('echo version', 'E121:')
|
||||||
call assert_false(exists('version'))
|
call assert_false(exists('version'))
|
||||||
let version = 1
|
let version = 1
|
||||||
|
@ -771,6 +771,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1190,
|
||||||
/**/
|
/**/
|
||||||
1189,
|
1189,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user