# HG changeset patch # User Bram Moolenaar # Date 1641992407 -3600 # Node ID 94e38672014af54256e2ee1a5febf67a27652ebc # Parent 14f39b11af550799623edcaa85e34460a5ba0550 patch 8.2.4068: Vim9: import test fails Commit: https://github.com/vim/vim/commit/f479cac084c7ddd9f20944c8978d39f3ef092868 Author: Bram Moolenaar 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. diff --git a/src/scriptfile.c b/src/scriptfile.c --- 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4068, +/**/ 4067, /**/ 4066,