diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-15 17:49:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-15 17:49:10 +0200 |
commit | af9143833865a2d8311e57313023271720442f90 (patch) | |
tree | 798ae56f2032add8d796300d35de5bcacffe5041 /src | |
parent | a046b37c22bcabdea5f0fd6d21ca4bd0aa4c768e (diff) |
patch 8.1.2038: has('vimscript-4') is always 0v8.1.2038
Problem: has('vimscript-4') is always 0.
Solution: Add "vimscript-4" to the feature table. (Naruhiko Nishino,
closes #4941)
Diffstat (limited to 'src')
-rw-r--r-- | src/evalfunc.c | 1 | ||||
-rw-r--r-- | src/testdir/test_eval_stuff.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 67726923dc..b352ea9f89 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -3771,6 +3771,7 @@ f_has(typval_T *argvars, typval_T *rettv) "vimscript-1", "vimscript-2", "vimscript-3", + "vimscript-4", "virtualedit", "visual", "visualextra", diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim index 720f3094ef..4e8b782f12 100644 --- a/src/testdir/test_eval_stuff.vim +++ b/src/testdir/test_eval_stuff.vim @@ -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) diff --git a/src/version.c b/src/version.c index 94ae34a480..98e69d446f 100644 --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2038, +/**/ 2037, /**/ 2036, |