To: vim_dev@googlegroups.com Subject: Patch 8.2.0429 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0429 Problem: No warning when test checks for option that never exists. Solution: In tests check that the option can exist. Files: src/testdir/check.vim *** ../vim-8.2.0428/src/testdir/check.vim 2020-03-22 16:16:48.548189763 +0100 --- src/testdir/check.vim 2020-03-22 20:02:10.939916845 +0100 *************** *** 17,22 **** --- 17,25 ---- " 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 *** ../vim-8.2.0428/src/version.c 2020-03-22 19:25:46.235919583 +0100 --- src/version.c 2020-03-22 20:03:49.431649111 +0100 *************** *** 740,741 **** --- 740,743 ---- { /* Add new patch number below this line */ + /**/ + 429, /**/ -- Q: How does a UNIX Guru do Sex ? A: unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///