Skip to content

Commit

Permalink
patch 7.4.1181
Browse files Browse the repository at this point in the history
Problem:    free_tv() can't handle special variables. (Damien)
Solution:   Add the variable type.
  • Loading branch information
brammool committed Jan 26, 2016
1 parent ac80999 commit 6650a69
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/eval.c
Expand Up @@ -21608,6 +21608,7 @@ free_tv(varp)
case VAR_FLOAT:
#endif
case VAR_UNKNOWN:
case VAR_SPECIAL:
break;
default:
EMSG2(_(e_intern2), "free_tv()");
Expand Down
10 changes: 10 additions & 0 deletions src/testdir/test_viml.vim
Expand Up @@ -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

"-------------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -746,6 +746,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1181,
/**/
1180,
/**/
Expand Down

0 comments on commit 6650a69

Please sign in to comment.