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

updated for version 7.1-208

This commit is contained in:
Bram Moolenaar 2008-01-05 21:16:31 +00:00
parent 5eaf8729e7
commit afbdeb852f
2 changed files with 6 additions and 3 deletions

View File

@ -3407,6 +3407,7 @@ do_unlet(name, forceit)
hashtab_T *ht; hashtab_T *ht;
hashitem_T *hi; hashitem_T *hi;
char_u *varname; char_u *varname;
dictitem_T *di;
ht = find_var_ht(name, &varname); ht = find_var_ht(name, &varname);
if (ht != NULL && *varname != NUL) if (ht != NULL && *varname != NUL)
@ -3414,9 +3415,9 @@ do_unlet(name, forceit)
hi = hash_find(ht, varname); hi = hash_find(ht, varname);
if (!HASHITEM_EMPTY(hi)) if (!HASHITEM_EMPTY(hi))
{ {
if (var_check_fixed(HI2DI(hi)->di_flags, name)) di = HI2DI(hi);
return FAIL; if (var_check_fixed(di->di_flags, name)
if (var_check_ro(HI2DI(hi)->di_flags, name)) || var_check_ro(di->di_flags, name))
return FAIL; return FAIL;
delete_var(ht, hi); delete_var(ht, hi);
return OK; return OK;

View File

@ -666,6 +666,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 */
/**/
208,
/**/ /**/
207, 207,
/**/ /**/