]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4068: Vim9: import test fails v8.2.4068
authorBram Moolenaar <Bram@vim.org>
Wed, 12 Jan 2022 12:54:55 +0000 (12:54 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 12 Jan 2022 12:54:55 +0000 (12:54 +0000)
Problem:    Vim9: import test fails.
Solution:   Add missing change.

src/scriptfile.c
src/version.c

index 948866636a81afef0e3640e331dc1bb24eb0b88b..350813934a9608621a0d9a83350640b8e063de52 100644 (file)
@@ -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;
index adf217566d9c0d170ed938816e8d30499efa5e0e..74b03e47c1cd4f2a24bc966c3eb13b23bd84c876 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4068,
 /**/
     4067,
 /**/