mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
7dc9182cf0
Problem: Autoload script sourced twice if sourced directly.
Solution: Do not source an autoload script again. (issue vim/vim#6644)
daa2f36573
Cherry-pick ret_sid changes from patch 8.2.0149.
Use do_in_runtimepath() as that's what source_runtime() calls in Nvim.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
5 lines
88 B
VimL
5 lines
88 B
VimL
let g:loaded_sourced_vim += 1
|
|
func sourced#something()
|
|
endfunc
|
|
call sourced#something()
|