diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-02 22:44:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-02 22:44:16 +0200 |
commit | 71fb0c146bef08dc276fc5793bd47366e6e0f32a (patch) | |
tree | b4d2535d4cfd7d63b449ea32b87e818f156b021b /src/testdir/test_packadd.vim | |
parent | 298c65971e884666d57c32bff6b730d517d9dc30 (diff) | |
download | vim-git-71fb0c146bef08dc276fc5793bd47366e6e0f32a.tar.gz |
patch 7.4.1699v7.4.1699
Problem: :packadd does not work the same when used early or late.
Solution: Always load plugins matching "plugin/**/*.vim".
Diffstat (limited to 'src/testdir/test_packadd.vim')
-rw-r--r-- | src/testdir/test_packadd.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testdir/test_packadd.vim b/src/testdir/test_packadd.vim index 44b733ffc..9e75c3383 100644 --- a/src/testdir/test_packadd.vim +++ b/src/testdir/test_packadd.vim @@ -11,7 +11,7 @@ func TearDown() endfunc func Test_packadd() - call mkdir(s:plugdir . '/plugin', 'p') + call mkdir(s:plugdir . '/plugin/also', 'p') call mkdir(s:plugdir . '/ftdetect', 'p') set rtp& let rtp = &rtp @@ -21,6 +21,10 @@ func Test_packadd() call setline(1, 'let g:plugin_works = 42') wq + exe 'split ' . s:plugdir . '/plugin/also/loaded.vim' + call setline(1, 'let g:plugin_also_works = 77') + wq + exe 'split ' . s:plugdir . '/ftdetect/test.vim' call setline(1, 'let g:ftdetect_works = 17') wq @@ -28,6 +32,7 @@ func Test_packadd() packadd mytest call assert_equal(42, g:plugin_works) + call assert_equal(77, g:plugin_also_works) call assert_equal(17, g:ftdetect_works) call assert_true(len(&rtp) > len(rtp)) call assert_true(&rtp =~ 'testdir/Xdir/pack/mine/opt/mytest\($\|,\)') |