diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-07 22:23:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-07 22:23:04 +0100 |
commit | 3388d334572f9d65a603d09d75e363805d96c5d9 (patch) | |
tree | 181aa5869c33377419fccbcc140801cfeeeffc23 /src/testdir/sautest | |
parent | 6e65d594aa33be11f6074f26e9ff81b52504c62b (diff) | |
download | vim-git-3388d334572f9d65a603d09d75e363805d96c5d9.tar.gz |
patch 8.0.1378: autoload script sources itself when defining functionv8.0.1378
Problem: Autoload script sources itself when defining function.
Solution: Pass TFN_NO_AUTOLOAD to trans_function_name(). (Yasuhiro
Matsumoto, closes #2423)
Diffstat (limited to 'src/testdir/sautest')
-rw-r--r-- | src/testdir/sautest/autoload/sourced.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/sautest/autoload/sourced.vim b/src/testdir/sautest/autoload/sourced.vim new file mode 100644 index 000000000..f69f00cb5 --- /dev/null +++ b/src/testdir/sautest/autoload/sourced.vim @@ -0,0 +1,3 @@ +let g:loaded_sourced_vim += 1 +func! sourced#something() +endfunc |