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:
@@ -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()");
|
||||||
|
@@ -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
|
||||||
|
|
||||||
"-------------------------------------------------------------------------------
|
"-------------------------------------------------------------------------------
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user