# HG changeset patch # User Bram Moolenaar # Date 1584904504 -3600 # Node ID 1da2fb80b512db615159a74b3fbf634847c2fbcc # Parent 7a9b0a54964beee76f0d2212537f67f8f0814c1d patch 8.2.0429: no warning when test checks for option that never exists Commit: https://github.com/vim/vim/commit/c5a8fdc42dbd304598b2d73db754c7b97665b182 Author: Bram Moolenaar Date: Sun Mar 22 20:13:39 2020 +0100 patch 8.2.0429: no warning when test checks for option that never exists Problem: No warning when test checks for option that never exists. Solution: In tests check that the option can exist. diff --git a/src/testdir/check.vim b/src/testdir/check.vim --- a/src/testdir/check.vim +++ b/src/testdir/check.vim @@ -17,6 +17,9 @@ endfunc " Command to check for the presence of a working option. command -nargs=1 CheckOption call CheckOption() func CheckOption(name) + if !exists('&' .. a:name) + throw 'Checking for non-existent option ' .. a:name + endif if !exists('+' .. a:name) throw 'Skipped: ' .. a:name .. ' option not supported' endif diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 429, +/**/ 428, /**/ 427,