diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-11-10 17:33:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-11-10 17:33:29 +0100 |
commit | ded5f1bed7ff2d138b3ee0f9610d17290b62692d (patch) | |
tree | 54727bd70279df4fadc4b8f4701577ac33282ef5 /src/main.c | |
parent | 1bbb61948342b5cf6e363629f145c65eb455c388 (diff) | |
download | vim-git-ded5f1bed7ff2d138b3ee0f9610d17290b62692d.tar.gz |
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/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index d4ff37055..d24eafa94 100644 --- a/src/main.c +++ b/src/main.c @@ -2953,6 +2953,7 @@ exe_commands(mparm_T *parmp) sourcing_name = (char_u *)"command line"; #ifdef FEAT_EVAL current_sctx.sc_sid = SID_CARG; + current_sctx.sc_seq = 0; #endif for (i = 0; i < parmp->n_commands; ++i) { @@ -3183,6 +3184,7 @@ process_env( #ifdef FEAT_EVAL save_current_sctx = current_sctx; current_sctx.sc_sid = SID_ENV; + current_sctx.sc_seq = 0; current_sctx.sc_lnum = 0; #endif do_cmdline_cmd(initstr); |