mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.2120
Problem: User defined functions can't be a closure. Solution: Add the "closure" argument. Allow using :unlet on a bound variable. (Yasuhiro Matsumoto, Ken Takata)
This commit is contained in:
@@ -2837,7 +2837,9 @@ do_unlet(char_u *name, int forceit)
|
||||
}
|
||||
}
|
||||
hi = hash_find(ht, varname);
|
||||
if (!HASHITEM_EMPTY(hi))
|
||||
if (HASHITEM_EMPTY(hi))
|
||||
hi = find_hi_in_scoped_ht(name, &varname, &ht);
|
||||
if (hi != NULL && !HASHITEM_EMPTY(hi))
|
||||
{
|
||||
di = HI2DI(hi);
|
||||
if (var_check_fixed(di->di_flags, name, FALSE)
|
||||
|
Reference in New Issue
Block a user