mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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:
parent
d7c9687947
commit
b6e3b88ec8
@ -43,8 +43,10 @@ func Test_define_var_with_lock()
|
|||||||
unlet F
|
unlet F
|
||||||
unlet l
|
unlet l
|
||||||
unlet d
|
unlet d
|
||||||
unlet j
|
if has('channel')
|
||||||
unlet c
|
unlet j
|
||||||
|
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
|
||||||
unlet l:j
|
if has('channel')
|
||||||
unlet l:c
|
unlet l:j
|
||||||
|
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,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user