]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.2485: when sourcing a script again the script version isn't reset v8.2.2485
authorBram Moolenaar <Bram@vim.org>
Sun, 7 Feb 2021 16:17:58 +0000 (17:17 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 7 Feb 2021 16:17:58 +0000 (17:17 +0100)
commit0123cc1e1422003704cc6941916dd75e61fb7976
tree2566043accaead2dabf88969d18611289c740522
parentdee37dc733df444df1950eb922a35560e4b113d6
patch 8.2.2485: when sourcing a script again the script version isn't reset

Problem:    When sourcing a script again the script version isn't reset.
Solution:   Set sn_version to one when sourcing a script again. Clear
            sn_save_cpo properly. (closes #7608)
src/scriptfile.c
src/testdir/test_vim9_script.vim
src/version.c