Mercurial > vim
comparison src/scriptfile.c @ 19507:65049a682574 v8.2.0311
patch 8.2.0311: Vim9: insufficient script tests
Commit: https://github.com/vim/vim/commit/750802b55c6edda4d3bc78c41ad0a25a3450a557
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 23 18:08:33 2020 +0100
patch 8.2.0311: Vim9: insufficient script tests
Problem: Vim9: insufficient script tests.
Solution: Add tests. Free imports when re-using a script.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Feb 2020 18:15:03 +0100 |
parents | 133ef7ba4e4e |
children | d64f403289db |
comparison
equal
deleted
inserted
replaced
19506:8602a051c9bd | 19507:65049a682574 |
---|---|
1282 { | 1282 { |
1283 --todo; | 1283 --todo; |
1284 di = HI2DI(hi); | 1284 di = HI2DI(hi); |
1285 di->di_flags |= DI_FLAGS_RELOAD; | 1285 di->di_flags |= DI_FLAGS_RELOAD; |
1286 } | 1286 } |
1287 | |
1288 // old imports are no longer valid | |
1289 free_imports(sid); | |
1287 } | 1290 } |
1288 else | 1291 else |
1289 { | 1292 { |
1290 // It's new, generate a new SID. | 1293 // It's new, generate a new SID. |
1291 current_sctx.sc_sid = ++last_current_SID; | 1294 current_sctx.sc_sid = ++last_current_SID; |