diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-11 22:05:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-11 22:05:47 +0200 |
commit | f0a4069e3df904ac6bd57718ec06e56c5d7363e4 (patch) | |
tree | 7f58de7700fa10cb7e4216d9f847b65479ae9833 /src/scriptfile.c | |
parent | 4f135275984722c1b1e9ace72eeeb7ce7e4ec983 (diff) | |
download | vim-git-f0a4069e3df904ac6bd57718ec06e56c5d7363e4.tar.gz |
patch 8.2.2975: Vim9: can only use an autoload function name as a stringv8.2.2975
Problem: Vim9: can only use an autoload function name as a string.
Solution: Load the autoload script when encountered. (closes #8124)
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r-- | src/scriptfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c index bbc415664..eefe39a13 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1128,6 +1128,7 @@ do_source( proftime_T wait_start; #endif int trigger_source_post = FALSE; + int save_estack_compiling = estack_compiling; ESTACK_CHECK_DECLARATION p = expand_env_save(fname); @@ -1142,6 +1143,7 @@ do_source( smsg(_("Cannot source a directory: \"%s\""), fname); goto theend; } + estack_compiling = FALSE; #ifdef FEAT_EVAL // See if we loaded this script before. @@ -1508,6 +1510,7 @@ almosttheend: theend: vim_free(fname_exp); + estack_compiling = save_estack_compiling; return retval; } |