summaryrefslogtreecommitdiff
path: root/src/scriptfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-28 19:41:33 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-28 19:41:33 +0100
commit33fa29cf74ea314f89cfa58ec9ffc2d6781a59d4 (patch)
treed0efad2d8d614a0e63505c62a3b18e5b91f5589d /src/scriptfile.c
parent09c569038c42dcbdaa5c9b35fc9d1afbe5072cb4 (diff)
downloadvim-git-33fa29cf74ea314f89cfa58ec9ffc2d6781a59d4.tar.gz
patch 8.2.0467: Vim9: some errors are not testedv8.2.0467
Problem: Vim9: some errors are not tested Solution: Add more tests. Fix that Vim9 script flag is not reset.
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r--src/scriptfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c
index 55b1ddd26..a7af4e95b 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -1274,6 +1274,7 @@ do_source(
// loading the same script again
si->sn_had_command = FALSE;
+ si->sn_version = 1;
current_sctx.sc_sid = sid;
ht = &SCRIPT_VARS(sid);