forked from aniani/vim
patch 7.4.1181
Problem: free_tv() can't handle special variables. (Damien) Solution: Add the variable type.
This commit is contained in:
@@ -21608,6 +21608,7 @@ free_tv(varp)
|
||||
case VAR_FLOAT:
|
||||
#endif
|
||||
case VAR_UNKNOWN:
|
||||
case VAR_SPECIAL:
|
||||
break;
|
||||
default:
|
||||
EMSG2(_(e_intern2), "free_tv()");
|
||||
|
@@ -1005,6 +1005,16 @@ func Test_type()
|
||||
call assert_false(empty(v:true))
|
||||
call assert_true(empty(v:null))
|
||||
call assert_true(empty(v:none))
|
||||
|
||||
func ChangeYourMind()
|
||||
try
|
||||
return v:true
|
||||
finally
|
||||
return 'something else'
|
||||
endtry
|
||||
endfunc
|
||||
|
||||
call ChangeYourMind()
|
||||
endfunc
|
||||
|
||||
"-------------------------------------------------------------------------------
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1181,
|
||||
/**/
|
||||
1180,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user