diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-23 18:08:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-23 18:08:33 +0100 |
commit | 750802b55c6edda4d3bc78c41ad0a25a3450a557 (patch) | |
tree | bbd7bf53ce2e50daa7af2520c28eabaab38677ce /src/scriptfile.c | |
parent | 8fb1b47a5e24892b23c3923a07d8a850d99b14b2 (diff) | |
download | vim-git-750802b55c6edda4d3bc78c41ad0a25a3450a557.tar.gz |
patch 8.2.0311: Vim9: insufficient script testsv8.2.0311
Problem: Vim9: insufficient script tests.
Solution: Add tests. Free imports when re-using a script.
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r-- | src/scriptfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c index 09548d89b..9c644e2b0 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1284,6 +1284,9 @@ do_source( di = HI2DI(hi); di->di_flags |= DI_FLAGS_RELOAD; } + + // old imports are no longer valid + free_imports(sid); } else { |