0
0
mirror of https://github.com/vim/vim.git synced 2025-10-17 07:44:28 -04:00
Files
vim/src/testdir/sautest/autoload/sourced.vim
Bram Moolenaar 3388d33457 patch 8.0.1378: autoload script sources itself when defining function
Problem:    Autoload script sources itself when defining function.
Solution:   Pass TFN_NO_AUTOLOAD to trans_function_name(). (Yasuhiro
            Matsumoto, closes #2423)
2017-12-07 22:23:04 +01:00

4 lines
64 B
VimL

let g:loaded_sourced_vim += 1
func! sourced#something()
endfunc