mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
vim-patch:8.2.1398: autoload script sourced twice if sourced directly (#22622)
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>
This commit is contained in:
@@ -4026,7 +4026,7 @@ static void syn_cmd_include(exarg_T *eap, int syncing)
|
||||
prev_toplvl_grp = curwin->w_s->b_syn_topgrp;
|
||||
curwin->w_s->b_syn_topgrp = sgl_id;
|
||||
if (source
|
||||
? do_source(eap->arg, false, DOSO_NONE) == FAIL
|
||||
? do_source(eap->arg, false, DOSO_NONE, NULL) == FAIL
|
||||
: source_runtime(eap->arg, DIP_ALL) == FAIL) {
|
||||
semsg(_(e_notopen), eap->arg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user