0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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: case VAR_FLOAT:
#endif #endif
case VAR_UNKNOWN: case VAR_UNKNOWN:
case VAR_SPECIAL:
break; break;
default: default:
EMSG2(_(e_intern2), "free_tv()"); EMSG2(_(e_intern2), "free_tv()");

View File

@@ -1005,6 +1005,16 @@ func Test_type()
call assert_false(empty(v:true)) call assert_false(empty(v:true))
call assert_true(empty(v:null)) call assert_true(empty(v:null))
call assert_true(empty(v:none)) call assert_true(empty(v:none))
func ChangeYourMind()
try
return v:true
finally
return 'something else'
endtry
endfunc
call ChangeYourMind()
endfunc endfunc
"------------------------------------------------------------------------------- "-------------------------------------------------------------------------------

View File

@@ -746,6 +746,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 */
/**/
1181,
/**/ /**/
1180, 1180,
/**/ /**/