diff options
author | James McCoy <jamessan@jamessan.com> | 2016-04-28 19:23:15 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-07-08 01:39:12 -0400 |
commit | d43ac790f2454e2173eb645bdcd97c7a7c7e4846 (patch) | |
tree | 873c80c713e57c8b349ad35674d127334f546f28 /src/nvim/ex_cmds2.c | |
parent | 9dc621e77deded9d7fe8ca478a17443da50b88ef (diff) | |
download | rneovim-d43ac790f2454e2173eb645bdcd97c7a7c7e4846.tar.gz rneovim-d43ac790f2454e2173eb645bdcd97c7a7c7e4846.tar.bz2 rneovim-d43ac790f2454e2173eb645bdcd97c7a7c7e4846.zip |
vim-patch:7.4.1479
Problem: No testfor ":loadplugin".
Solution: Add a test. Fix how option is being set.
https://github.com/vim/vim/commit/863c1a9079fa340d663ccafb011729a29186d73e
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 8389ed9400..bafd4ee666 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -2378,13 +2378,13 @@ int do_in_runtimepath(char_u *name, bool all, DoInRuntimepathCB callback, // Source filetype detection scripts, if filetype.vim was already done. static void may_do_filetypes(char_u *pat) { - char_u *cmd = vim_strsave((char_u *)"did_load_filetypes"); + char_u *cmd = vim_strsave((char_u *)"g:did_load_filetypes"); // If runtime/filetype.vim wasn't loaded yet, the scripts will be found // when it loads. if (cmd != NULL && eval_to_number(cmd) > 0) { do_cmdline_cmd("augroup filetypedetect"); - source_runtime(pat, TRUE); + do_in_path(p_pp, pat, true, source_callback, NULL); do_cmdline_cmd("augroup END"); } xfree(cmd); @@ -2438,8 +2438,8 @@ static void source_pack_plugin(char_u *fname, void *cookie) memmove(new_rtp + keep + 1 + addlen, p_rtp + keep, oldlen - keep + 1); } - free_string_option(p_rtp); - p_rtp = new_rtp; + set_option_value((char_u *)"rtp", 0L, new_rtp, 0); + xfree(new_rtp); } *p2 = c; |