1
0
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:
Bram Moolenaar
2016-01-26 19:59:10 +01:00
parent ac80999985
commit 6650a69454
3 changed files with 13 additions and 0 deletions

View File

@@ -21608,6 +21608,7 @@ free_tv(varp)
case VAR_FLOAT:
#endif
case VAR_UNKNOWN:
case VAR_SPECIAL:
break;
default:
EMSG2(_(e_intern2), "free_tv()");

View File

@@ -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
"-------------------------------------------------------------------------------

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1181,
/**/
1180,
/**/