Mercurial > vim
comparison src/proto/dict.pro @ 20347:0e1dfff4f294 v8.2.0729
patch 8.2.0729: Vim9: When reloading a script variables are not cleared
Commit: https://github.com/vim/vim/commit/89483d40438830fb9e74a5ec6c92d2470b05e4c2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 10 15:24:44 2020 +0200
patch 8.2.0729: Vim9: When reloading a script variables are not cleared
Problem: Vim9: When reloading a script variables are not cleared.
Solution: When sourcing a script again clear all script-local variables.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 May 2020 15:30:03 +0200 |
parents | ba9f50bfda83 |
children | 2f8b0812819f |
comparison
equal
deleted
inserted
replaced
20346:cd52b48baba5 | 20347:0e1dfff4f294 |
---|---|
3 dict_T *dict_alloc_id(alloc_id_T id); | 3 dict_T *dict_alloc_id(alloc_id_T id); |
4 dict_T *dict_alloc_lock(int lock); | 4 dict_T *dict_alloc_lock(int lock); |
5 int rettv_dict_alloc(typval_T *rettv); | 5 int rettv_dict_alloc(typval_T *rettv); |
6 void rettv_dict_set(typval_T *rettv, dict_T *d); | 6 void rettv_dict_set(typval_T *rettv, dict_T *d); |
7 void dict_free_contents(dict_T *d); | 7 void dict_free_contents(dict_T *d); |
8 void hashtab_free_contents(hashtab_T *ht); | |
8 void dict_unref(dict_T *d); | 9 void dict_unref(dict_T *d); |
9 int dict_free_nonref(int copyID); | 10 int dict_free_nonref(int copyID); |
10 void dict_free_items(int copyID); | 11 void dict_free_items(int copyID); |
11 dictitem_T *dictitem_alloc(char_u *key); | 12 dictitem_T *dictitem_alloc(char_u *key); |
12 void dictitem_remove(dict_T *dict, dictitem_T *item); | 13 void dictitem_remove(dict_T *dict, dictitem_T *item); |