diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 14:59:45 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 18:06:00 +0800 |
commit | e25193143bca3a48920322634120a442854bb891 (patch) | |
tree | bf6bf2b029cb90e508298c415ea86210a55f2ad7 /test/functional/vimscript/minmax_functions_spec.lua | |
parent | 562d572926e0c11329c13c9df45be7170888e7f6 (diff) | |
download | rneovim-e25193143bca3a48920322634120a442854bb891.tar.gz rneovim-e25193143bca3a48920322634120a442854bb891.tar.bz2 rneovim-e25193143bca3a48920322634120a442854bb891.zip |
vim-patch:8.2.1751: using 2 where bool is expected may throw an error
Problem: Using 2 where bool is expected may throw an error.
Solution: Make this backwards compatible.
https://github.com/vim/vim/commit/bade44e5cad1b08c85d4a8ba08d94a30458dddfb
In legacy Vim script get_bool functions do the same thing as get_number
functions, so just add aliases using #define.
N/A patches for version.c:
vim-patch:8.2.1506: Vim9: no error when using a number other than 0 or 1 as bool
Problem: Vim9: no error when using a number other than 0 or 1 as bool.
Solution: Check the number is 0 or 1.
https://github.com/vim/vim/commit/d70840ed68296c1144d743e6335003c81c558c24
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/functional/vimscript/minmax_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions