forked from aniani/vim
patch 8.1.1543: const test fails with small features
Problem: Const test fails with small features. Solution: Don't unlet non-existing variables.
This commit is contained in:
@@ -43,8 +43,10 @@ func Test_define_var_with_lock()
|
|||||||
unlet F
|
unlet F
|
||||||
unlet l
|
unlet l
|
||||||
unlet d
|
unlet d
|
||||||
|
if has('channel')
|
||||||
unlet j
|
unlet j
|
||||||
unlet c
|
unlet c
|
||||||
|
endif
|
||||||
unlet b
|
unlet b
|
||||||
unlet n
|
unlet n
|
||||||
unlet bl
|
unlet bl
|
||||||
@@ -92,8 +94,10 @@ func Test_define_l_var_with_lock()
|
|||||||
unlet l:F
|
unlet l:F
|
||||||
unlet l:l
|
unlet l:l
|
||||||
unlet l:d
|
unlet l:d
|
||||||
|
if has('channel')
|
||||||
unlet l:j
|
unlet l:j
|
||||||
unlet l:c
|
unlet l:c
|
||||||
|
endif
|
||||||
unlet l:b
|
unlet l:b
|
||||||
unlet l:n
|
unlet l:n
|
||||||
unlet l:bl
|
unlet l:bl
|
||||||
|
@@ -777,6 +777,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1543,
|
||||||
/**/
|
/**/
|
||||||
1542,
|
1542,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user