summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-11-10 17:33:29 +0100
committerBram Moolenaar <Bram@vim.org>2018-11-10 17:33:29 +0100
commitded5f1bed7ff2d138b3ee0f9610d17290b62692d (patch)
tree54727bd70279df4fadc4b8f4701577ac33282ef5 /src/globals.h
parent1bbb61948342b5cf6e363629f145c65eb455c388 (diff)
patch 8.1.0515: reloading a script gives errors for existing functionsv8.1.0515
Problem: Reloading a script gives errors for existing functions. Solution: Allow redefining a function once when reloading a script.
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h
index 511479d862..131c13be95 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -326,7 +326,7 @@ EXTERN int want_garbage_collect INIT(= FALSE);
EXTERN int garbage_collect_at_exit INIT(= FALSE);
// Script CTX being sourced or was sourced to define the current function.
-EXTERN sctx_T current_sctx INIT(= {0 COMMA 0});
+EXTERN sctx_T current_sctx INIT(= {0 COMMA 0 COMMA 0});
#endif
EXTERN int did_source_packages INIT(= FALSE);