1
0
forked from aniani/vim

patch 8.0.0372: more options are not always defined

Problem:    More options are not always defined.
Solution:   Consistently define all possible options.
This commit is contained in:
Bram Moolenaar
2017-02-25 22:18:43 +01:00
parent 14c2e18b63
commit a713ff819d
3 changed files with 157 additions and 59 deletions

View File

@@ -14,7 +14,7 @@ func s:test_expand_dllpath(optname)
endfunc
func s:generate_test_if_exists(optname)
if exists('&' . a:optname)
if exists('+' . a:optname)
execute join([
\ 'func Test_expand_' . a:optname . '()',
\ ' call s:test_expand_dllpath("' . a:optname . '")',