Mercurial > vim
comparison src/eval.c @ 17053:d5fa04016df0 v8.1.1526
patch 8.1.1526: no numerical value for the patchlevel
commit https://github.com/vim/vim/commit/37df9a4401f6737d6216306ea77a7e080c942aea
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 14 14:39:51 2019 +0200
patch 8.1.1526: no numerical value for the patchlevel
Problem: No numerical value for the patchlevel.
Solution: Add v:versionlong.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 14 Jun 2019 14:45:06 +0200 |
parents | 301f6deea057 |
children | 00ffed9bbb65 |
comparison
equal
deleted
inserted
replaced
17052:4f290fef4173 | 17053:d5fa04016df0 |
---|---|
191 {VV_NAME("t_channel", VAR_NUMBER), VV_RO}, | 191 {VV_NAME("t_channel", VAR_NUMBER), VV_RO}, |
192 {VV_NAME("t_blob", VAR_NUMBER), VV_RO}, | 192 {VV_NAME("t_blob", VAR_NUMBER), VV_RO}, |
193 {VV_NAME("termrfgresp", VAR_STRING), VV_RO}, | 193 {VV_NAME("termrfgresp", VAR_STRING), VV_RO}, |
194 {VV_NAME("termrbgresp", VAR_STRING), VV_RO}, | 194 {VV_NAME("termrbgresp", VAR_STRING), VV_RO}, |
195 {VV_NAME("termu7resp", VAR_STRING), VV_RO}, | 195 {VV_NAME("termu7resp", VAR_STRING), VV_RO}, |
196 {VV_NAME("termstyleresp", VAR_STRING), VV_RO}, | 196 {VV_NAME("termstyleresp", VAR_STRING), VV_RO}, |
197 {VV_NAME("termblinkresp", VAR_STRING), VV_RO}, | 197 {VV_NAME("termblinkresp", VAR_STRING), VV_RO}, |
198 {VV_NAME("event", VAR_DICT), VV_RO}, | 198 {VV_NAME("event", VAR_DICT), VV_RO}, |
199 {VV_NAME("versionlong", VAR_NUMBER), VV_RO}, | |
199 }; | 200 }; |
200 | 201 |
201 /* shorthand */ | 202 /* shorthand */ |
202 #define vv_type vv_di.di_tv.v_type | 203 #define vv_type vv_di.di_tv.v_type |
203 #define vv_nr vv_di.di_tv.vval.v_number | 204 #define vv_nr vv_di.di_tv.vval.v_number |
352 if (p->vv_flags & VV_COMPAT) | 353 if (p->vv_flags & VV_COMPAT) |
353 /* add to compat scope dict */ | 354 /* add to compat scope dict */ |
354 hash_add(&compat_hashtab, p->vv_di.di_key); | 355 hash_add(&compat_hashtab, p->vv_di.di_key); |
355 } | 356 } |
356 vimvars[VV_VERSION].vv_nr = VIM_VERSION_100; | 357 vimvars[VV_VERSION].vv_nr = VIM_VERSION_100; |
358 vimvars[VV_VERSIONLONG].vv_nr = VIM_VERSION_100 * 10000 + highest_patch(); | |
357 | 359 |
358 set_vim_var_nr(VV_SEARCHFORWARD, 1L); | 360 set_vim_var_nr(VV_SEARCHFORWARD, 1L); |
359 set_vim_var_nr(VV_HLSEARCH, 1L); | 361 set_vim_var_nr(VV_HLSEARCH, 1L); |
360 set_vim_var_dict(VV_COMPLETED_ITEM, dict_alloc_lock(VAR_FIXED)); | 362 set_vim_var_dict(VV_COMPLETED_ITEM, dict_alloc_lock(VAR_FIXED)); |
361 set_vim_var_list(VV_ERRORS, list_alloc()); | 363 set_vim_var_list(VV_ERRORS, list_alloc()); |