comparison src/ex_docmd.c @ 23358:b3142fc0a414 v8.2.2222

patch 8.2.2222: Vim9: cannot keep script variables when reloading Commit: https://github.com/vim/vim/commit/2b32700dabf392566d8e9fef76e0d587a891ee3e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 26 15:39:31 2020 +0100 patch 8.2.2222: Vim9: cannot keep script variables when reloading Problem: Vim9: cannot keep script variables when reloading. Solution: Add the "noclear" argument to :vim9script.
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Dec 2020 15:45:04 +0100
parents 2060f53b7c17
children 622e90acea5d
comparison
equal deleted inserted replaced
23357:2cd9078b4d97 23358:b3142fc0a414
2592 2592
2593 #ifdef FEAT_EVAL 2593 #ifdef FEAT_EVAL
2594 // Set flag that any command was executed, used by ex_vim9script(). 2594 // Set flag that any command was executed, used by ex_vim9script().
2595 if (getline_equal(ea.getline, ea.cookie, getsourceline) 2595 if (getline_equal(ea.getline, ea.cookie, getsourceline)
2596 && current_sctx.sc_sid > 0) 2596 && current_sctx.sc_sid > 0)
2597 SCRIPT_ITEM(current_sctx.sc_sid)->sn_had_command = TRUE; 2597 SCRIPT_ITEM(current_sctx.sc_sid)->sn_state = SN_STATE_HAD_COMMAND;
2598 2598
2599 /* 2599 /*
2600 * If the command just executed called do_cmdline(), any throw or ":return" 2600 * If the command just executed called do_cmdline(), any throw or ":return"
2601 * or ":finish" encountered there must also check the cstack of the still 2601 * or ":finish" encountered there must also check the cstack of the still
2602 * active do_cmdline() that called this do_one_cmd(). Rethrow an uncaught 2602 * active do_cmdline() that called this do_one_cmd(). Rethrow an uncaught