Skip to content

Commit 93a4879

Browse files
committed
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.
1 parent abc7c7f commit 93a4879

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/evalfunc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6624,6 +6624,7 @@ f_has(typval_T *argvars, typval_T *rettv)
66246624
#endif
66256625
"vimscript-1",
66266626
"vimscript-2",
6627+
"vimscript-3",
66276628
"virtualedit",
66286629
"visual",
66296630
"visualextra",

src/testdir/test_eval_stuff.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ endfunc
126126

127127
scriptversion 2
128128
func Test_string_concat_scriptversion2()
129+
call assert_true(has('vimscript-2'))
129130
let a = 'a'
130131
let b = 'b'
131132

@@ -141,6 +142,7 @@ endfunc
141142

142143
scriptversion 1
143144
func Test_string_concat_scriptversion1()
145+
call assert_true(has('vimscript-1'))
144146
let a = 'a'
145147
let b = 'b'
146148

@@ -156,6 +158,7 @@ endfunc
156158

157159
scriptversion 3
158160
func Test_vvar_scriptversion3()
161+
call assert_true(has('vimscript-3'))
159162
call assert_fails('echo version', 'E121:')
160163
call assert_false(exists('version'))
161164
let version = 1

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1190,
774776
/**/
775777
1189,
776778
/**/

0 commit comments

Comments
 (0)