Mercurial > vim
diff src/testdir/test_packadd.vim @ 9112:932f94b2d8c2 v7.4.1840
commit https://github.com/vim/vim/commit/a57024453115592b8847af40ddd965a33898e390
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 24 19:37:29 2016 +0200
patch 7.4.1840
Problem: When using packages an "after" directory cannot be used.
Solution: Add the "after" directory of the package to 'runtimepath' if it
exists.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 May 2016 19:45:06 +0200 |
parents | 9f40a379ff1e |
children | 437cf0fe2138 |
line wrap: on
line diff
--- a/src/testdir/test_packadd.vim +++ b/src/testdir/test_packadd.vim @@ -13,6 +13,7 @@ endfunc func Test_packadd() call mkdir(s:plugdir . '/plugin/also', 'p') call mkdir(s:plugdir . '/ftdetect', 'p') + call mkdir(s:plugdir . '/after', 'p') set rtp& let rtp = &rtp filetype on @@ -35,7 +36,8 @@ func Test_packadd() 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\($\|,\)') + call assert_true(&rtp =~ '/testdir/Xdir/pack/mine/opt/mytest\($\|,\)') + call assert_true(&rtp =~ '/testdir/Xdir/pack/mine/opt/mytest/after$') " Check exception call assert_fails("packadd directorynotfound", 'E919:')