Mercurial > vim
changeset 27078:94e38672014a v8.2.4068
patch 8.2.4068: Vim9: import test fails
Commit: https://github.com/vim/vim/commit/f479cac084c7ddd9f20944c8978d39f3ef092868
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 12 12:54:55 2022 +0000
patch 8.2.4068: Vim9: import test fails
Problem: Vim9: import test fails.
Solution: Add missing change.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Jan 2022 14:00:07 +0100 |
parents | 14f39b11af55 |
children | ca2134e1c90a |
files | src/scriptfile.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1274,7 +1274,8 @@ do_source( // See if we loaded this script before. sid = find_script_by_name(fname_exp); - if (sid > 0 && ret_sid != NULL) + if (sid > 0 && ret_sid != NULL + && SCRIPT_ITEM(sid)->sn_state != SN_STATE_NOT_LOADED) { // Already loaded and no need to load again, return here. *ret_sid = sid;